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

Remove an API misuse.

`max_threads` is for the blocking thread pool, which is not needed.
Jing Yang 5 лет назад
Родитель
Сommit
fc4e79ab45
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      src/lib.rs

+ 0 - 1
src/lib.rs

@@ -179,7 +179,6 @@ impl Raft {
             .enable_time()
             .thread_name(format!("raft-instance-{}", me))
             .worker_threads(peer_size)
-            .max_threads(peer_size * 2)
             .build()
             .expect("Creating thread pool should not fail");
         let peers = peers.into_iter().map(Arc::new).collect();