graph/db: let ForEachChannelCacheable take a reset param

This commit is contained in:
Elle Mouton committed 2025-07-15 11:25:10 +02:00
1 parent b3f3766fe6
commit 13d0bd5ef6
4 files changed
+8 -9

No files matched your search

+2 -2
View File
@@ -177,8 +177,8 @@ type V1Store interface { //nolint:interfacebloat
// NOTE: this method is like ForEachChannel but fetches only the data
// required for the graph cache.
ForEachChannelCacheable(cb func(*models.CachedEdgeInfo,
*models.CachedEdgePolicy,
*models.CachedEdgePolicy) error) error
*models.CachedEdgePolicy, *models.CachedEdgePolicy) error,
reset func()) error
// DisabledChannelIDs returns the channel ids of disabled channels.
// A channel is disabled when two of the associated ChanelEdgePolicies