graph/db: let ForEachNodeChannel take a context

This commit is contained in:
Elle Mouton
2025-07-07 09:30:28 +02:00
parent 67c0f54e13
commit f8d3a3f3ba
9 changed files with 22 additions and 18 deletions

View File

@@ -257,7 +257,7 @@ type DB interface {
// to the caller.
//
// Unknown policies are passed into the callback as nil values.
ForEachNodeChannel(nodePub route.Vertex,
ForEachNodeChannel(ctx context.Context, nodePub route.Vertex,
cb func(*models.ChannelEdgeInfo, *models.ChannelEdgePolicy,
*models.ChannelEdgePolicy) error) error