Ensure at least one cq

pull/10897/head
Craig Tiller 8 years ago
parent 6c1c8e5f04
commit b86da9503a
  1. 2
      include/grpc++/server_builder.h

@ -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) {}

Loading…
Cancel
Save