Skip to content

Commit

Permalink
looks good
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Jan 6, 2025
1 parent fce00a8 commit 0619f1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ pub async fn work2(
let report_tx = report_tx.clone();
let counter = counter.clone();
let client = client.clone();
local.spawn_local(async move {
local.spawn_local(Box::pin(async move {
let mut client_state = ClientStateHttp1::default();
while counter.fetch_add(1, Ordering::Relaxed) < n_tasks {
let res = client.work_http1(&mut client_state).await;
Expand All @@ -1144,7 +1144,7 @@ pub async fn work2(
break;
}
}
});
}));
}
rt.block_on(local);
})
Expand Down

0 comments on commit 0619f1d

Please sign in to comment.