Skip to content
Snippets Groups Projects
Commit b86da950 authored by Craig Tiller's avatar Craig Tiller
Browse files

Ensure at least one cq

parent 6c1c8e5f
No related branches found
No related tags found
No related merge requests found
...@@ -195,7 +195,7 @@ class ServerBuilder { ...@@ -195,7 +195,7 @@ class ServerBuilder {
struct SyncServerSettings { struct SyncServerSettings {
SyncServerSettings() SyncServerSettings()
: num_cqs(gpr_cpu_num_cores()), : num_cqs(GPR_MAX(1, gpr_cpu_num_cores())),
min_pollers(1), min_pollers(1),
max_pollers(2), max_pollers(2),
cq_timeout_msec(10000) {} cq_timeout_msec(10000) {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment