Pārlūkot izejas kodu

Allowing any server to use tokio timer in RPC handlers.

Jing Yang 4 gadi atpakaļ
vecāks
revīzija
3ea074f6f6
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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");