|
|
|
@ -116,7 +116,6 @@ ServerBuilder& ServerBuilder::SetSyncServerOption( |
|
|
|
|
case NUM_CQS: |
|
|
|
|
sync_server_settings_.num_cqs = val; |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case MIN_POLLERS: |
|
|
|
|
sync_server_settings_.min_pollers = val; |
|
|
|
|
break; |
|
|
|
@ -217,8 +216,8 @@ std::unique_ptr<Server> ServerBuilder::BuildAndStart() { |
|
|
|
|
// ServerBuilder's AddCompletionQueue() method (those completion queues
|
|
|
|
|
// are in 'cqs_' member variable of ServerBuilder object)
|
|
|
|
|
std::shared_ptr<std::vector<std::unique_ptr<ServerCompletionQueue>>> |
|
|
|
|
sync_server_cqs( |
|
|
|
|
new std::vector<std::unique_ptr<ServerCompletionQueue>>()); |
|
|
|
|
sync_server_cqs = std::make_shared< |
|
|
|
|
std::vector<std::unique_ptr<ServerCompletionQueue>>>(); |
|
|
|
|
|
|
|
|
|
if (has_sync_methods) { |
|
|
|
|
// This is a Sync server
|
|
|
|
|