diff --git a/tower-batch/tests/ed25519.rs b/tower-batch/tests/ed25519.rs index 76fa153852a..a3012954120 100644 --- a/tower-batch/tests/ed25519.rs +++ b/tower-batch/tests/ed25519.rs @@ -4,7 +4,7 @@ use std::time::Duration; use color_eyre::{eyre::eyre, Report}; use ed25519_zebra::*; -use futures::stream::{FuturesUnordered, StreamExt}; +use futures::stream::{FuturesOrdered, StreamExt}; use rand::thread_rng; use tower::{Service, ServiceExt}; use tower_batch::Batch; @@ -24,7 +24,7 @@ async fn sign_and_verify( where V: Service, { - let results = FuturesUnordered::new(); + let mut results = FuturesOrdered::new(); for i in 0..n { let span = tracing::trace_span!("sig", i); let sk = SigningKey::new(thread_rng());