mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 01:07:57 +00:00
Check unbounded channel first when polling for subsystem mesages (#5566)
* Prefer unbounded channel when selecting rx events * Fix tests * Forgotten fmt recursion * Extract strategy functor to allow easier modifications
This commit is contained in:
@@ -1129,7 +1129,11 @@ fn context_holds_onto_message_until_enough_signals_received() {
|
||||
|
||||
let mut ctx = OverseerSubsystemContext::new(
|
||||
signal_rx,
|
||||
stream::select(bounded_rx, unbounded_rx),
|
||||
stream::select_with_strategy(
|
||||
bounded_rx,
|
||||
unbounded_rx,
|
||||
orchestra::select_message_channel_strategy,
|
||||
),
|
||||
channels_out,
|
||||
to_overseer_tx,
|
||||
"test",
|
||||
|
||||
Reference in New Issue
Block a user