瀏覽代碼

Add a comment for network thread pool threads.

Jing Yang 4 年之前
父節點
當前提交
ee740a7d33
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/network.rs

+ 2 - 0
src/network.rs

@@ -267,6 +267,8 @@ impl Network {
         mark_trace!(rpc.trace, served);
     }
 
+    // 8 worker threads can handle the load of 20 clients of KV server
+    // with a 1-second deadline.
     const WORKER_THREADS: usize = 16;
 
     pub fn run_daemon() -> Arc<Mutex<Network>> {