summaryrefslogtreecommitdiffstats
path: root/benches/sync_semaphore.rs
diff options
context:
space:
mode:
Diffstat (limited to 'benches/sync_semaphore.rs')
-rw-r--r--benches/sync_semaphore.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/benches/sync_semaphore.rs b/benches/sync_semaphore.rs
index 19a1dd33..17b26148 100644
--- a/benches/sync_semaphore.rs
+++ b/benches/sync_semaphore.rs
@@ -49,8 +49,7 @@ fn uncontended_concurrent_multi(b: &mut Bencher) {
}
fn uncontended_concurrent_single(b: &mut Bencher) {
- let rt = tokio::runtime::Builder::new_multi_thread()
- .worker_threads(0)
+ let rt = tokio::runtime::Builder::new_current_thread()
.build()
.unwrap();