Procházet zdrojové kódy

Allowing any server to use tokio timer in RPC handlers.

Jing Yang před 4 roky
rodič
revize
3ea074f6f6
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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");