Skip to content
Snippets Groups Projects
Commit 4ca479c3 authored by Vijay Pai's avatar Vijay Pai
Browse files

Change pointer format

parent c3b02d9a
No related branches found
No related tags found
No related merge requests found
......@@ -130,8 +130,8 @@ static void RunServer() {
builder.AddPort(server_address);
builder.RegisterService(service.service());
ThreadPool *pool = new ThreadPool(FLAGS_server_threads);
builder.SetThreadPool(pool);
std::unique_ptr<ThreadPool> pool(new ThreadPool(FLAGS_server_threads));
builder.SetThreadPool(pool.get());
std::unique_ptr<Server> server(builder.BuildAndStart());
gpr_log(GPR_INFO, "Server listening on %s\n", server_address);
......@@ -144,7 +144,6 @@ static void RunServer() {
grpc_profiler_stop();
delete pool;
gpr_free(server_address);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment