Merge pull request #10610 from ellemouton/graph-cleanup-todo-contexts
graph/db+refactor: surface all `context.TODO()`s
This commit is contained in:
31 files changed
+642
-484
No files matched your search
@@ -1398,7 +1398,7 @@ func newServer(ctx context.Context, cfg *Config, listenAddrs []net.Addr,
|
||||
*models.ChannelEdgePolicy, error) {
|
||||
|
||||
info, e1, e2, err := s.graphDB.FetchChannelEdgesByID(
|
||||
scid.ToUint64(),
|
||||
context.TODO(), scid.ToUint64(),
|
||||
)
|
||||
if errors.Is(err, graphdb.ErrEdgeNotFound) {
|
||||
// This is unlikely but there is a slim chance of this
|
||||
@@ -1427,7 +1427,7 @@ func newServer(ctx context.Context, cfg *Config, listenAddrs []net.Addr,
|
||||
}
|
||||
|
||||
err = s.v1Graph.DeleteChannelEdges(
|
||||
false, false, scid.ToUint64(),
|
||||
context.TODO(), false, false, scid.ToUint64(),
|
||||
)
|
||||
return ourPolicy, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user