graph/db: pass reset to ForEachNodeCacheable

This commit is contained in:
Elle Mouton committed 2025-07-15 11:25:09 +02:00
1 parent 21ac7ef6f4
commit e17fd58a1d
5 files changed
+10 -8

No files matched your search

+4
View File
@@ -1469,6 +1469,8 @@ func TestGraphTraversalCacheable(t *testing.T) {
nodes = append(nodes, node)
return nil
}, func() {
nodes = nil
})
require.NoError(t, err)
require.Len(t, nodeMap, 0)
@@ -4227,6 +4229,8 @@ func BenchmarkForEachChannel(b *testing.B) {
nodes = append(nodes, node)
return nil
}, func() {
nodes = nil
})
require.NoError(b, err)