Merge pull request #1162 from grpc/vector-subscript

Fixing "vector: invalid subscript" issue.
This commit is contained in:
Michael Lumish 2019-11-07 09:21:56 -08:00 committed by GitHub
commit d4ae0384ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -685,7 +685,7 @@ NAN_METHOD(Call::StartBatch) {
}
Callback *callback = new Callback(callback_func);
grpc_call_error error = grpc_call_start_batch(
call->wrapped_call, &ops[0], nops,
call->wrapped_call, ops.data(), nops,
new struct tag(callback, op_vector.release(), call, info.This()), NULL);
if (error != GRPC_CALL_OK) {
return Nan::ThrowError(nanErrorWithCode("startBatch failed", error));