Sfoglia il codice sorgente

Add rational for omitting timeout.

Jing Yang 5 anni fa
parent
commit
7d2d1d419f
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/network.rs

+ 1 - 0
src/network.rs

@@ -188,6 +188,7 @@ impl Network {
                 // Simulates the copy from network to server.
                 let data = rpc.request.clone();
                 lookup_result.replace(server.clone());
+                // No need to set timeout. The RPCs are not supposed to block.
                 server.dispatch(rpc.service_method, data).await
             }
             // If the server does not exist, return error after a random delay.