multi: add reset to ForEachNode

This commit is contained in:
Elle Mouton committed 2025-07-15 11:25:09 +02:00
1 parent c32bf642d2
commit 21ac7ef6f4
9 files changed
+17 -13

No files matched your search

+1 -3
View File
@@ -802,9 +802,7 @@ func (c *KVStore) DisabledChannelIDs() ([]uint64, error) {
// 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(_ context.Context,
cb func(tx NodeRTx) error) error {
reset := func() {}
cb func(tx NodeRTx) error, reset func()) error {
return forEachNode(c.db, func(tx kvdb.RTx,
node *models.LightningNode) error {