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

+3 -1
View File
@@ -789,7 +789,9 @@ func (c *KVStore) DisabledChannelIDs() ([]uint64, error) {
// early. Any operations performed on the NodeTx passed to the call-back are
// executed under the same read transaction and so, methods on the NodeTx object
// _MUST_ only be called from within the call-back.
func (c *KVStore) ForEachNode(cb func(tx NodeRTx) error) error {
func (c *KVStore) ForEachNode(_ context.Context,
cb func(tx NodeRTx) error) error {
return forEachNode(c.db, func(tx kvdb.RTx,
node *models.LightningNode) error {