Просмотр исходного кода

Remove thread number configuration.

The default is one thread per core. That should be good enough for
our purposes.
Jing Yang 5 лет назад
Родитель
Сommit
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()