diff options
author | Craig Tiller <ctiller@google.com> | 2017-04-28 22:12:39 +0000 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-04-28 22:12:39 +0000 |
commit | b9b2cbfb7177a76afe78501da7ccbaea8fcbfd81 (patch) | |
tree | 88219d9d13afab50337ee91f4698c0201c24e99d /include/grpc++ | |
parent | 1168e8147843ec7c41cbdb088c33c658893d9093 (diff) |
rr assignments
Diffstat (limited to 'include/grpc++')
-rw-r--r-- | include/grpc++/server_builder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/grpc++/server_builder.h b/include/grpc++/server_builder.h index 7ac23349c8..d9de83226b 100644 --- a/include/grpc++/server_builder.h +++ b/include/grpc++/server_builder.h @@ -195,7 +195,7 @@ class ServerBuilder { struct SyncServerSettings { SyncServerSettings() - : num_cqs(1), min_pollers(1), max_pollers(2), cq_timeout_msec(10000) {} + : num_cqs(GPR_MAX(1,gpr_cpu_num_cores())), 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; |