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
@@ -181,7 +181,7 @@ func assertInSync(t *testing.T, kvDB *KVStore, sqlDB *SQLStore,
func fetchAllNodes(t *testing.T, store V1Store) []*models.LightningNode {
nodes := make([]*models.LightningNode, 0)
err := store.ForEachNode(func(tx NodeRTx) error {
err := store.ForEachNode(context.Background(), func(tx NodeRTx) error {
node := tx.Node()
// Call PubKey to ensure the objects cached pubkey is set so that