graph/db: let ForEachNodeCached take a context

This commit is contained in:
Elle Mouton
2025-07-07 09:48:39 +02:00
parent 1e804a3d5f
commit 3d5e852c8c
8 changed files with 15 additions and 14 deletions

View File

@@ -234,6 +234,6 @@ type GraphSource interface {
// channel graph cache if one is available. It is less consistent than
// ForEachNode since any further calls are made across multiple
// transactions.
ForEachNodeCached(cb func(node route.Vertex,
ForEachNodeCached(ctx context.Context, cb func(node route.Vertex,
chans map[uint64]*graphdb.DirectedChannel) error) error
}