소스 검색

Enable async io in Ruaft thread pool.

Jing Yang 4 년 전
부모
커밋
ccfef9df42
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/lib.rs

+ 1 - 0
src/lib.rs

@@ -184,6 +184,7 @@ where
         let thread_env = daemon_env.for_thread();
         let thread_pool = tokio::runtime::Builder::new_multi_thread()
             .enable_time()
+            .enable_io()
             .thread_name(format!("raft-instance-{}", me))
             .worker_threads(peer_size)
             .on_thread_start(move || thread_env.clone().attach())