multi: pass reset to GraphSession

This commit is contained in:
Elle Mouton committed 2025-07-15 11:25:09 +02:00
1 parent e17fd58a1d
commit b3f3766fe6
9 files changed
+23 -14

No files matched your search

+4 -2
View File
@@ -233,12 +233,14 @@ func (c *ChannelGraph) FetchNodeFeatures(node route.Vertex) (
// instance which can be used to perform queries against the channel graph. If
// the graph cache is not enabled, then the call-back will be provided with
// access to the graph via a consistent read-only transaction.
func (c *ChannelGraph) GraphSession(cb func(graph NodeTraverser) error) error {
func (c *ChannelGraph) GraphSession(cb func(graph NodeTraverser) error,
reset func()) error {
if c.graphCache != nil {
return cb(c)
}
return c.V1Store.GraphSession(cb)
return c.V1Store.GraphSession(cb, reset)
}
// ForEachNodeCached iterates through all the stored vertices/nodes in the