瀏覽代碼

Remove thread number configuration.

The default is one thread per core. That should be good enough for
our purposes.
Jing Yang 5 年之前
父節點
當前提交
ed6017d28e
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      src/network.rs

+ 0 - 2
src/network.rs

@@ -269,8 +269,6 @@ impl Network {
 
         // Using tokio instead of futures-rs, because we need timer futures.
         let thread_pool = tokio::runtime::Builder::new_multi_thread()
-            .worker_threads(10)
-            .max_threads(20)
             .thread_name("network")
             .enable_time()
             .build()