routing+server: let ForAllOutgoingChannels take a context

And so, remove a previously added context.TODO
This commit is contained in:
Elle Mouton committed 2025-07-08 15:10:30 +02:00
1 parent 046e106a17
commit 85fda8b926
3 files changed
+10 -9

No files matched your search

+3 -2
View File
@@ -123,8 +123,9 @@ func TestManager(t *testing.T) {
return nil
}
forAllOutgoingChannels := func(cb func(*models.ChannelEdgeInfo,
*models.ChannelEdgePolicy) error) error {
forAllOutgoingChannels := func(_ context.Context,
cb func(*models.ChannelEdgeInfo,
*models.ChannelEdgePolicy) error) error {
for _, c := range channelSet {
if err := cb(c.edgeInfo, &currentPolicy); err != nil {