소스 검색

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>> {