diff options
author | Sree Kuchibhotla <sreek@google.com> | 2016-09-21 10:45:33 -0700 |
---|---|---|
committer | Sree Kuchibhotla <sreek@google.com> | 2016-09-21 10:45:33 -0700 |
commit | 4028d2c11b6561ad7aea71e7bc465dc56865d40d (patch) | |
tree | 003358672b4d573650a1c4d527ed16e1a9d5035a /include/grpc++/server.h | |
parent | 4306eeee397760e11b416f43e881e7dfb87f88b0 (diff) |
More fixes
Diffstat (limited to 'include/grpc++/server.h')
-rw-r--r-- | include/grpc++/server.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/grpc++/server.h b/include/grpc++/server.h index 0c8b22184b..af0a15d7bd 100644 --- a/include/grpc++/server.h +++ b/include/grpc++/server.h @@ -135,7 +135,8 @@ class Server GRPC_FINAL : public ServerInterface, private GrpcLibraryCodegen { /// \param max_pollers The maximum number of polling threads per server /// completion queue (in param sync_server_cqs) to use for listening to /// incoming requests (used only in case of sync server) - Server(std::shared_ptr<std::vector<ServerCompletionQueue>> sync_server_cqs, + Server(std::shared_ptr<std::vector<std::unique_ptr<ServerCompletionQueue>>> + sync_server_cqs, int max_message_size, ChannelArguments* args, int min_pollers, int max_pollers); @@ -193,7 +194,8 @@ class Server GRPC_FINAL : public ServerInterface, private GrpcLibraryCodegen { /// The following completion queues are ONLY used in case of Sync API i.e if /// the server has any services with sync methods. The server uses these /// completion queues to poll for new RPCs - std::shared_ptr<std::vector<ServerCompletionQueue>> sync_server_cqs_; + std::shared_ptr<std::vector<std::unique_ptr<ServerCompletionQueue>>> + sync_server_cqs_; /// List of GrpcRpcManager instances (one for each cq in the sync_server_cqs) std::vector<std::unique_ptr<SyncRequestManager>> sync_req_mgrs_; |