graph/db: let ForEachChannel take a context
This commit is contained in:
5 files changed
+28
-22
No files matched your search
@@ -158,7 +158,7 @@ type V1Store interface { //nolint:interfacebloat
|
||||
// NOTE: If an edge can't be found, or wasn't advertised, then a nil
|
||||
// pointer for that particular channel edge routing policy will be
|
||||
// passed into the callback.
|
||||
ForEachChannel(cb func(*models.ChannelEdgeInfo,
|
||||
ForEachChannel(ctx context.Context, cb func(*models.ChannelEdgeInfo,
|
||||
*models.ChannelEdgePolicy,
|
||||
*models.ChannelEdgePolicy) error) error
|
||||
|
||||
|
||||
Reference in new issue
Block a user