浏览代码

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