Merge pull request #20769 from grpc/vjpai-patch-2

Explicitly spell out type to document RAII-ness
This commit is contained in:
Vijay Pai 2019-10-24 10:14:22 -07:00 committed by GitHub
commit 9087bfff6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ class WorkerServiceImpl final : public WorkerService::Service {
return Status(StatusCode::INVALID_ARGUMENT, "Invalid setup arg");
}
gpr_log(GPR_INFO, "RunClientBody: about to create client");
auto client = CreateClient(args.setup());
std::unique_ptr<Client> client = CreateClient(args.setup());
if (!client) {
return Status(StatusCode::INVALID_ARGUMENT, "Couldn't create client");
}
@ -234,7 +234,7 @@ class WorkerServiceImpl final : public WorkerService::Service {
args.mutable_setup()->set_port(server_port_);
}
gpr_log(GPR_INFO, "RunServerBody: about to create server");
auto server = CreateServer(args.setup());
std::unique_ptr<Server> server = CreateServer(args.setup());
if (g_inproc_servers != nullptr) {
g_inproc_servers->push_back(server.get());
}