generated from PlexSheep/rs-base
knapp aber knapp heißt eben nicht
This commit is contained in:
parent
274a6026b4
commit
b4fa88eab5
|
@ -2,8 +2,6 @@
|
||||||
// #![warn(missing_docs)]
|
// #![warn(missing_docs)]
|
||||||
#![warn(missing_debug_implementations)]
|
#![warn(missing_debug_implementations)]
|
||||||
|
|
||||||
use std::sync::Arc;
|
|
||||||
|
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use libpt::log::*;
|
use libpt::log::*;
|
||||||
use tokio;
|
use tokio;
|
||||||
|
@ -66,8 +64,9 @@ async fn main() -> anyhow::Result<()> {
|
||||||
trace!("{bench:#?}");
|
trace!("{bench:#?}");
|
||||||
|
|
||||||
let n = cli.n;
|
let n = cli.n;
|
||||||
let in_progress_bench = tokio::spawn( async move {
|
let bench2 = bench.clone();
|
||||||
bench.bench(n)
|
let in_progress_bench = tokio::spawn(async move {
|
||||||
|
bench2.bench(n).await
|
||||||
});
|
});
|
||||||
|
|
||||||
while !bench.is_finished() {
|
while !bench.is_finished() {
|
||||||
|
|
Loading…
Reference in New Issue