mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-12 23:28:31 +01:00
graph/db: thread context to AddLightningNode
This commit is contained in:
@@ -260,7 +260,7 @@ func (s *Server) ImportGraph(ctx context.Context,
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err := graphDB.AddLightningNode(node); err != nil {
|
||||
if err := graphDB.AddLightningNode(ctx, node); err != nil {
|
||||
return nil, fmt.Errorf("unable to add node %v: %w",
|
||||
rpcNode.PubKey, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user