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 {
struct SyncServerSettings {
SyncServerSettings()
: num_cqs(gpr_cpu_num_cores()),
: num_cqs(GPR_MAX(1, gpr_cpu_num_cores())),
min_pollers(1),
max_pollers(2),
cq_timeout_msec(10000) {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment