graph/db: thread through reset call-backs

In preparation for handling retries on the source DB side, we thread
through the `reset` call-backs properly so that we can reset appropriate
variables.
This commit is contained in:
Elle Mouton committed 2025-09-01 07:56:09 +02:00
1 parent aefc9118a4
commit 2c8ac0c92c
2 files changed
+30 -9

No files matched your search

+3 -2
View File
@@ -600,6 +600,7 @@ func checkKVPruneLogEntries(t *testing.T, kv *KVStore, sql *SQLStore,
return nil
},
func() {},
)
require.NoError(t, err)
@@ -631,7 +632,7 @@ func checkClosedSCIDIndex(t *testing.T, kv kvdb.Backend, sql *SQLStore) {
require.True(t, closed)
return nil
})
}, func() {})
require.NoError(t, err)
}
@@ -663,7 +664,7 @@ func checkZombieIndex(t *testing.T, kv kvdb.Backend, sql *SQLStore) {
}
return nil
})
}, func() {})
require.NoError(t, err)
}