graph/db: expose reset in ForEachChannel

Add a `reset` call-back param to the V1Store ForEachChannel method.
This commit is contained in:
Elle Mouton committed 2025-07-15 11:23:26 +02:00
1 parent e00f0a03fc
commit 88261834e5
6 files changed
+18 -22

No files matched your search

+2 -2
View File
@@ -159,8 +159,8 @@ type V1Store interface { //nolint:interfacebloat
// pointer for that particular channel edge routing policy will be
// passed into the callback.
ForEachChannel(ctx context.Context, cb func(*models.ChannelEdgeInfo,
*models.ChannelEdgePolicy,
*models.ChannelEdgePolicy) error) error
*models.ChannelEdgePolicy, *models.ChannelEdgePolicy) error,
reset func()) error
// ForEachChannelCacheable iterates through all the channel edges stored
// within the graph and invokes the passed callback for each edge. The