graph/db: thread context through FetchChannelEdgesByOutpoint
This commit is contained in:
10 files changed
+33
-19
No files matched your search
+1
-1
@@ -1217,7 +1217,7 @@ func (p *Brontide) loadActiveChannels(chans []*channeldb.OpenChannel) (
|
||||
// the database.
|
||||
graph := p.cfg.ChannelGraph
|
||||
info, p1, p2, err := graph.FetchChannelEdgesByOutpoint(
|
||||
&chanPoint,
|
||||
context.TODO(), &chanPoint,
|
||||
)
|
||||
if err != nil && !errors.Is(err, graphdb.ErrEdgeNotFound) {
|
||||
return nil, err
|
||||
|
||||
Reference in new issue
Block a user