Parcourir la source

Remove thread number configuration.

The default is one thread per core. That should be good enough for
our purposes.
Jing Yang il y a 5 ans
Parent
commit
ed6017d28e
1 fichiers modifiés avec 0 ajouts et 2 suppressions
  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()