diff options
author | Ken Payson <kpayson@google.com> | 2017-11-09 16:45:03 -0800 |
---|---|---|
committer | Ken Payson <kpayson@google.com> | 2017-11-10 13:59:54 -0800 |
commit | fcfa440b206f86566e25b8a83137c71d8b57fbcb (patch) | |
tree | 4e384f7d2abef4b780c07ab800f734766fa92a83 | |
parent | 76190cf14babab747d77f4fe0fca1af2ba7e7b8b (diff) |
Default to 1 cq per sync server
-rw-r--r-- | include/grpc++/server_builder.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/grpc++/server_builder.h b/include/grpc++/server_builder.h index bf842baf6f..0888bef0d9 100644 --- a/include/grpc++/server_builder.h +++ b/include/grpc++/server_builder.h @@ -202,10 +202,7 @@ class ServerBuilder { struct SyncServerSettings { SyncServerSettings() - : num_cqs(GPR_MAX(1, gpr_cpu_num_cores())), - min_pollers(1), - max_pollers(2), - cq_timeout_msec(10000) {} + : num_cqs(1), min_pollers(1), max_pollers(2), cq_timeout_msec(10000) {} /// Number of server completion queues to create to listen to incoming RPCs. int num_cqs; |