From c15c0bdda28a7ff20081c9e0406fa43b43471ce3 Mon Sep 17 00:00:00 2001 From: Weijia Jiang Date: Fri, 22 Sep 2023 23:51:10 +0800 Subject: [PATCH] fix the comments on spawn_concurrency_level --- tokio/src/runtime/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/runtime/builder.rs b/tokio/src/runtime/builder.rs index 6f0408ffbb7..cc3fcf06a8d 100644 --- a/tokio/src/runtime/builder.rs +++ b/tokio/src/runtime/builder.rs @@ -283,7 +283,7 @@ impl Builder { // Default to lazy auto-detection (one thread per CPU core) worker_threads: None, - // Default to lazy auto-detection (twice the number of worker threads) + // Default to lazy auto-detection (4 times the number of worker threads) spawn_concurrency_level: None, max_blocking_threads: 512,