Skip to content
Snippets Groups Projects
Commit f2af0c30 authored by Yuxuan Li's avatar Yuxuan Li
Browse files

change to new completion queue api

parent 0bbdb022
No related branches found
No related tags found
No related merge requests found
...@@ -184,7 +184,7 @@ static void BM_LameChannelCallCreateCore(benchmark::State &state) { ...@@ -184,7 +184,7 @@ static void BM_LameChannelCallCreateCore(benchmark::State &state) {
channel = grpc_lame_client_channel_create( channel = grpc_lame_client_channel_create(
"localhost:1234", GRPC_STATUS_UNAUTHENTICATED, "blah"); "localhost:1234", GRPC_STATUS_UNAUTHENTICATED, "blah");
cq = grpc_completion_queue_create(NULL); cq = grpc_completion_queue_create_for_next(NULL);
void *rc = grpc_channel_register_call( void *rc = grpc_channel_register_call(
channel, "/grpc.testing.EchoTestService/Echo", NULL, NULL); channel, "/grpc.testing.EchoTestService/Echo", NULL, NULL);
while (state.KeepRunning()) { while (state.KeepRunning()) {
...@@ -258,7 +258,7 @@ static void BM_LameChannelCallCreateCoreSeparateBatch(benchmark::State &state) { ...@@ -258,7 +258,7 @@ static void BM_LameChannelCallCreateCoreSeparateBatch(benchmark::State &state) {
channel = grpc_lame_client_channel_create( channel = grpc_lame_client_channel_create(
"localhost:1234", GRPC_STATUS_UNAUTHENTICATED, "blah"); "localhost:1234", GRPC_STATUS_UNAUTHENTICATED, "blah");
cq = grpc_completion_queue_create(NULL); cq = grpc_completion_queue_create_for_next(NULL);
void *rc = grpc_channel_register_call( void *rc = grpc_channel_register_call(
channel, "/grpc.testing.EchoTestService/Echo", NULL, NULL); channel, "/grpc.testing.EchoTestService/Echo", NULL, NULL);
while (state.KeepRunning()) { while (state.KeepRunning()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment