Skip to content
Snippets Groups Projects
Commit ba710e55 authored by David Garcia Quintas's avatar David Garcia Quintas
Browse files

Added changes to node and php wrappers

parent d7e0bea4
Branches
Tags
No related merge requests found
...@@ -550,6 +550,7 @@ NAN_METHOD(Call::StartBatch) { ...@@ -550,6 +550,7 @@ NAN_METHOD(Call::StartBatch) {
} }
uint32_t type = keys->Get(i)->Uint32Value(); uint32_t type = keys->Get(i)->Uint32Value();
ops[i].op = static_cast<grpc_op_type>(type); ops[i].op = static_cast<grpc_op_type>(type);
ops[i].flags = 0;
switch (type) { switch (type) {
case GRPC_OP_SEND_INITIAL_METADATA: case GRPC_OP_SEND_INITIAL_METADATA:
op.reset(new SendMetadataOp()); op.reset(new SendMetadataOp());
......
...@@ -397,6 +397,7 @@ PHP_METHOD(Call, startBatch) { ...@@ -397,6 +397,7 @@ PHP_METHOD(Call, startBatch) {
goto cleanup; goto cleanup;
} }
ops[op_num].op = (grpc_op_type)index; ops[op_num].op = (grpc_op_type)index;
ops[op_num].flags = 0;
op_num++; op_num++;
} }
error = grpc_call_start_batch(call->wrapped, ops, op_num, call->wrapped); error = grpc_call_start_batch(call->wrapped, ops, op_num, call->wrapped);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment