소스 검색

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