From 4d2b15ebf6175ef2afa79d1df3b33c0024bbaba5 Mon Sep 17 00:00:00 2001 From: Conrado Gouvea Date: Tue, 2 Aug 2022 10:36:59 -0300 Subject: [PATCH] use FuturesOrdered in fallback_verification test --- tower-batch/tests/ed25519.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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());