bug: set host will always undefined

This commit is contained in:
Yingyu Cheng 2018-12-25 18:45:29 +08:00 committed by GitHub
parent a4553f1a69
commit 2c5fe2dbc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ NAN_METHOD(Channel::CreateCall) {
if (info[2]->IsString()) {
grpc_slice *host = new grpc_slice;
*host =
CreateSliceFromString(Nan::To<String>(info[3]).ToLocalChecked());
CreateSliceFromString(Nan::To<String>(info[2]).ToLocalChecked());
wrapped_call = grpc_channel_create_call(
wrapped_channel, parent_call, propagate_flags, GetCompletionQueue(),
method, host, MillisecondsToTimespec(deadline), NULL);