routing: remove a context.TODO()

This commit is contained in:
Elle Mouton committed 2025-06-19 14:49:32 +02:00
1 parent 9597f01ce3
commit 91513623b5
4 files changed
+20 -11

No files matched your search

+4 -2
View File
@@ -1224,8 +1224,10 @@ func newServer(ctx context.Context, cfg *Config, listenAddrs []net.Addr,
PropagateChanPolicyUpdate: s.authGossiper.PropagateChanPolicyUpdate,
UpdateForwardingPolicies: s.htlcSwitch.UpdateForwardingPolicies,
FetchChannel: s.chanStateDB.FetchChannel,
AddEdge: func(edge *models.ChannelEdgeInfo) error {
return s.graphBuilder.AddEdge(context.TODO(), edge)
AddEdge: func(ctx context.Context,
edge *models.ChannelEdgeInfo) error {
return s.graphBuilder.AddEdge(ctx, edge)
},
}