graph/db: thread context to AddChannelEdge

This commit is contained in:
Elle Mouton
2025-06-17 21:10:17 +02:00
parent 7ba4051cfd
commit 3fdb9b84f4
16 changed files with 94 additions and 85 deletions

View File

@@ -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)
}