Skip to content

Commit

Permalink
use FuturesOrdered in fallback_verification test
Browse files Browse the repository at this point in the history
  • Loading branch information
conradoplg committed Aug 2, 2022
1 parent 0f01c9f commit 4d2b15e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tower-batch/tests/ed25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -24,7 +24,7 @@ async fn sign_and_verify<V>(
where
V: Service<Ed25519Item, Response = ()>,
{
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());
Expand Down

0 comments on commit 4d2b15e

Please sign in to comment.