Sree Kuchibhotla 8 年之前
父節點
當前提交
995ed1c3c6
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      include/grpc/grpc.h
  2. 1 1
      src/core/lib/surface/completion_queue_factory.c

+ 1 - 1
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;

+ 1 - 1
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);
 }