graph/db: let ForEachNode take a context

This commit is contained in:
Elle Mouton committed 2025-07-08 15:11:02 +02:00
1 parent f05ef2db97
commit 1e804a3d5f
8 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -123,7 +123,7 @@ func (d *dbNode) ForEachChannel(ctx context.Context,
func (d *databaseChannelGraph) ForEachNode(ctx context.Context,
cb func(context.Context, Node) error) error {
return d.db.ForEachNode(func(nodeTx graphdb.NodeRTx) error {
return d.db.ForEachNode(ctx, func(nodeTx graphdb.NodeRTx) error {
// We'll skip over any node that doesn't have any advertised
// addresses. As we won't be able to reach them to actually
// open any channels.