Skip to content
Snippets Groups Projects
Commit 8d8bb7a5 authored by Sree Kuchibhotla's avatar Sree Kuchibhotla
Browse files

Ruby changes

parent 56b1032f
No related branches found
No related tags found
No related merge requests found
...@@ -171,8 +171,7 @@ static VALUE grpc_rb_channel_init(int argc, VALUE *argv, VALUE self) { ...@@ -171,8 +171,7 @@ static VALUE grpc_rb_channel_init(int argc, VALUE *argv, VALUE self) {
} }
rb_ivar_set(self, id_target, target); rb_ivar_set(self, id_target, target);
wrapper->wrapped = ch; wrapper->wrapped = ch;
wrapper->queue = grpc_completion_queue_create(GRPC_CQ_PLUCK, wrapper->queue = grpc_completion_queue_create_for_pluck(NULL);
GRPC_CQ_DEFAULT_POLLING, NULL);
return self; return self;
} }
...@@ -270,8 +269,7 @@ static VALUE grpc_rb_channel_create_call(VALUE self, VALUE parent, VALUE mask, ...@@ -270,8 +269,7 @@ static VALUE grpc_rb_channel_create_call(VALUE self, VALUE parent, VALUE mask,
parent_call = grpc_rb_get_wrapped_call(parent); parent_call = grpc_rb_get_wrapped_call(parent);
} }
cq = grpc_completion_queue_create(GRPC_CQ_PLUCK, GRPC_CQ_DEFAULT_POLLING, cq = grpc_completion_queue_create_for_pluck(NULL);
NULL);
TypedData_Get_Struct(self, grpc_rb_channel, &grpc_channel_data_type, wrapper); TypedData_Get_Struct(self, grpc_rb_channel, &grpc_channel_data_type, wrapper);
ch = wrapper->wrapped; ch = wrapper->wrapped;
if (ch == NULL) { if (ch == NULL) {
......
...@@ -132,8 +132,7 @@ static VALUE grpc_rb_server_alloc(VALUE cls) { ...@@ -132,8 +132,7 @@ static VALUE grpc_rb_server_alloc(VALUE cls) {
Initializes server instances. */ Initializes server instances. */
static VALUE grpc_rb_server_init(VALUE self, VALUE channel_args) { static VALUE grpc_rb_server_init(VALUE self, VALUE channel_args) {
grpc_completion_queue *cq = grpc_completion_queue_create( grpc_completion_queue *cq = grpc_completion_queue_create_for_pluck(NULL);
GRPC_CQ_PLUCK, GRPC_CQ_DEFAULT_POLLING, NULL);
grpc_rb_server *wrapper = NULL; grpc_rb_server *wrapper = NULL;
grpc_server *srv = NULL; grpc_server *srv = NULL;
grpc_channel_args args; grpc_channel_args args;
...@@ -190,8 +189,8 @@ static VALUE grpc_rb_server_request_call(VALUE self) { ...@@ -190,8 +189,8 @@ static VALUE grpc_rb_server_request_call(VALUE self) {
request_call_stack st; request_call_stack st;
VALUE result; VALUE result;
void *tag = (void *)&st; void *tag = (void *)&st;
grpc_completion_queue *call_queue = grpc_completion_queue_create( grpc_completion_queue *call_queue =
GRPC_CQ_PLUCK, GRPC_CQ_DEFAULT_POLLING, NULL); grpc_completion_queue_create_for_pluck(NULL);
gpr_timespec deadline; gpr_timespec deadline;
TypedData_Get_Struct(self, grpc_rb_server, &grpc_rb_server_data_type, s); TypedData_Get_Struct(self, grpc_rb_server, &grpc_rb_server_data_type, s);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment