summaryrefslogtreecommitdiffstats
path: root/tokio/src/runtime/tests/loom_pool.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/runtime/tests/loom_pool.rs')
-rw-r--r--tokio/src/runtime/tests/loom_pool.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tokio/src/runtime/tests/loom_pool.rs b/tokio/src/runtime/tests/loom_pool.rs
index 47ee1981..06ad6412 100644
--- a/tokio/src/runtime/tests/loom_pool.rs
+++ b/tokio/src/runtime/tests/loom_pool.rs
@@ -296,9 +296,8 @@ mod group_d {
}
fn mk_pool(num_threads: usize) -> Runtime {
- runtime::Builder::new()
- .threaded_scheduler()
- .core_threads(num_threads)
+ runtime::Builder::new_multi_thread()
+ .worker_threads(num_threads)
.build()
.unwrap()
}