diff options
author | Craig Tiller <ctiller@google.com> | 2016-05-21 12:39:56 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-05-21 12:39:56 -0700 |
commit | fa96d86a99137fc5a3581413c752603ffa731b93 (patch) | |
tree | 821bb7d85de287fdc3ea13d1760ee5e22fccba52 /src | |
parent | 3f3312e7e92892c6625feecded6fbf09815689f0 (diff) |
Fix comments
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lib/surface/server.c | 4 | ||||
-rw-r--r-- | src/cpp/server/server_builder.cc | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lib/surface/server.c b/src/core/lib/surface/server.c index 6be65f7033..505b501968 100644 --- a/src/core/lib/surface/server.c +++ b/src/core/lib/surface/server.c @@ -175,7 +175,7 @@ struct registered_method { char *host; grpc_server_register_method_payload_handling payload_handling; uint32_t flags; - /* one request matcher per method per cq */ + /* one request matcher per method */ request_matcher request_matcher; registered_method *next; }; @@ -204,7 +204,7 @@ struct grpc_server { gpr_mu mu_call; /* mutex for call-specific state */ registered_method *registered_methods; - /** one request matcher for unregistered methods per cq */ + /** one request matcher for unregistered methods */ request_matcher unregistered_request_matcher; /** free list of available requested_calls indices */ gpr_stack_lockfree *request_freelist; diff --git a/src/cpp/server/server_builder.cc b/src/cpp/server/server_builder.cc index 5966e548b0..54feac3982 100644 --- a/src/cpp/server/server_builder.cc +++ b/src/cpp/server/server_builder.cc @@ -119,6 +119,7 @@ std::unique_ptr<Server> ServerBuilder::BuildAndStart() { for (auto plugin = plugins_.begin(); plugin != plugins_.end(); plugin++) { if ((*plugin).second->has_sync_methods()) { thread_pool.reset(CreateDefaultThreadPool()); + has_sync_methods = true; break; } } |