Merge pull request #688 from winguse/patch-1

bug: set host will always undefined
This commit is contained in:
Michael Lumish 2019-01-07 10:55:46 -08:00 committed by GitHub
commit 023dc77338
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);