Skip to content

Commit 2655a69

Browse files
committed
rfq: return on first match
If there are multiple assets in a channel, we want to allow a single asset ID to be used to identify a channel as compatible.
1 parent 4b108f3 commit 2655a69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rfq/manager.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,12 +1044,12 @@ func (m *Manager) ChannelCompatible(ctx context.Context,
10441044
return false, err
10451045
}
10461046

1047-
if !match {
1048-
return false, err
1047+
if match {
1048+
return true, err
10491049
}
10501050
}
10511051

1052-
return true, nil
1052+
return false, nil
10531053
}
10541054

10551055
// publishSubscriberEvent publishes an event to all subscribers.

0 commit comments

Comments
 (0)