소스 검색

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()