Fix comments

pull/6612/head
Craig Tiller 9 years ago
parent 3f3312e7e9
commit fa96d86a99
  1. 4
      src/core/lib/surface/server.c
  2. 1
      src/cpp/server/server_builder.cc

@ -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;

@ -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;
}
}

Loading…
Cancel
Save