mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
graph/db: thread context to AddChannelEdge
This commit is contained in:
@@ -293,7 +293,7 @@ func (s *Server) ImportGraph(ctx context.Context,
|
||||
}
|
||||
edge.ChannelPoint = *channelPoint
|
||||
|
||||
if err := graphDB.AddChannelEdge(edge); err != nil {
|
||||
if err := graphDB.AddChannelEdge(ctx, edge); err != nil {
|
||||
return nil, fmt.Errorf("unable to add edge %v: %w",
|
||||
rpcEdge.ChanPoint, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user