Explorar o código

Allowing any server to use tokio timer in RPC handlers.

Jing Yang %!s(int64=4) %!d(string=hai) anos
pai
achega
3ea074f6f6
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/network.rs

+ 1 - 0
src/network.rs

@@ -335,6 +335,7 @@ impl Network {
     fn new() -> (Self, Receiver<Option<RpcOnWire>>) {
         // Server thread pool
         let server_pool = tokio::runtime::Builder::new_multi_thread()
+            .enable_time()
             .thread_name("server-pool")
             .build()
             .expect("Creating server thread pool should not fail");