graph/db: let ForEachNode take a context
This commit is contained in:
8 files changed
+14
-14
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user