mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 18:55:32 +00:00
aquatic_udp: use StreamExt::or when receiving from channels
This commit is contained in:
parent
c6ba1bc61c
commit
93907822f8
2 changed files with 4 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ pub async fn run_request_worker(
|
|||
let mut stream = empty().boxed_local();
|
||||
|
||||
for (_, receiver) in request_receivers.streams() {
|
||||
stream = Box::pin(stream.race(receiver));
|
||||
stream = Box::pin(stream.or(receiver));
|
||||
}
|
||||
|
||||
while let Some((producer_index, request, addr)) = stream.next().await {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue