aquatic_udp: use StreamExt::or when receiving from channels

This commit is contained in:
Joakim Frostegård 2021-10-19 02:03:23 +02:00
parent c6ba1bc61c
commit 93907822f8
2 changed files with 4 additions and 2 deletions

View file

@ -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 {