mirror of https://github.com/fafhrd91/actix-net
actix-service: Fix clippy warning in benches (#174)
This commit is contained in:
parent
02aaa75591
commit
afb0a3c9fc
|
@ -293,9 +293,8 @@ where
|
|||
let start = std::time::Instant::now();
|
||||
// benchmark body
|
||||
rt.block_on(async move { join_all(srvs.iter_mut().map(|srv| srv.call(()))).await });
|
||||
let elapsed = start.elapsed();
|
||||
// check that at least first request succeeded
|
||||
elapsed
|
||||
start.elapsed()
|
||||
})
|
||||
});
|
||||
}
|
||||
|
|
|
@ -95,9 +95,8 @@ where
|
|||
let start = std::time::Instant::now();
|
||||
// benchmark body
|
||||
rt.block_on(async move { join_all(srvs.iter_mut().map(|srv| srv.call(()))).await });
|
||||
let elapsed = start.elapsed();
|
||||
// check that at least first request succeeded
|
||||
elapsed
|
||||
start.elapsed()
|
||||
})
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue