diff options
author | Lucio Franco <luciofranco14@gmail.com> | 2020-10-12 15:15:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 15:15:40 -0400 |
commit | 07802b2c8487c6e70e39d0b0cd6bf7705fc88337 (patch) | |
tree | 38ac9bbd91124505c14aad66108c9ecab08a5d4e /benches/sync_semaphore.rs | |
parent | 891de3271dc3545fb09162e578251e9977d9789c (diff) |
rt: `worker_threads` must be non-zero (#2947)
Co-authored-by: Alice Ryhl <alice@ryhl.io>
Diffstat (limited to 'benches/sync_semaphore.rs')
-rw-r--r-- | benches/sync_semaphore.rs | 3 |
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(); |