knapp aber knapp heißt eben nicht

This commit is contained in:
Christoph J. Scherr 2024-04-18 14:10:32 +02:00
parent 274a6026b4
commit b4fa88eab5
1 changed files with 3 additions and 4 deletions

View File

@ -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() {