aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Sree Kuchibhotla <sreek@google.com>2017-03-22 02:34:39 -0700
committerGravatar Sree Kuchibhotla <sreek@google.com>2017-03-22 02:34:39 -0700
commit995ed1c3c6abd81f6b9dad71491da986e0e6f01e (patch)
tree0cdd9c1e5a49706b8e395431894de404b5029c6e
parentf6c202670c89b9dd540a21d9d412f544dee69fe1 (diff)
Fix bug
-rw-r--r--include/grpc/grpc.h2
-rw-r--r--src/core/lib/surface/completion_queue_factory.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h
index 68c277cd08..fecb784570 100644
--- a/include/grpc/grpc.h
+++ b/include/grpc/grpc.h
@@ -135,7 +135,7 @@ typedef struct grpc_completion_queue_attributes {
structure in future. */
int version; /* Set to GRPC_CQ_CURRENT_VERSION */
- grpc_cq_completion_type cq_type;
+ grpc_cq_completion_type cq_completion_type;
grpc_cq_polling_type cq_polling_type;
} grpc_completion_queue_attributes;
diff --git a/src/core/lib/surface/completion_queue_factory.c b/src/core/lib/surface/completion_queue_factory.c
index 138dfeff48..db67a5192b 100644
--- a/src/core/lib/surface/completion_queue_factory.c
+++ b/src/core/lib/surface/completion_queue_factory.c
@@ -71,7 +71,7 @@ grpc_completion_queue* grpc_completion_queue_create_for_next(void* reserved) {
grpc_completion_queue* grpc_completion_queue_create_for_pluck(void* reserved) {
GPR_ASSERT(!reserved);
- grpc_completion_queue_attributes attr = {1, GRPC_CQ_NEXT,
+ grpc_completion_queue_attributes attr = {1, GRPC_CQ_PLUCK,
GRPC_CQ_DEFAULT_POLLING};
return g_default_cq_factory.vtable->create(&g_default_cq_factory, &attr);
}