routing: remove a context.TODO()
This commit is contained in:
4 files changed
+20
-11
No files matched your search
@@ -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)
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user