mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 05:51:02 +00:00
End multiplexer stream once one of its inputs end. (#2380)
* End multiplexer stream once one of its inputs end. Also add test, that we don't panic once a stream is exhausted. * Don't fuse already fused stream.
This commit is contained in:
@@ -169,7 +169,7 @@ where
|
||||
let action = {
|
||||
let subsystem_next = ctx.recv().fuse();
|
||||
let mut net_event_next = event_stream.next().fuse();
|
||||
let mut req_res_event_next = bridge.request_multiplexer.next().fuse();
|
||||
let mut req_res_event_next = bridge.request_multiplexer.next();
|
||||
futures::pin_mut!(subsystem_next);
|
||||
|
||||
futures::select! {
|
||||
|
||||
Reference in New Issue
Block a user