ソースを参照

Remove an API misuse.

`max_threads` is for the blocking thread pool, which is not needed.
Jing Yang 5 年 前
コミット
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();