From 2c5fe2dbc36830a5fd9c254e0bf237a6692f3542 Mon Sep 17 00:00:00 2001 From: Yingyu Cheng Date: Tue, 25 Dec 2018 18:45:29 +0800 Subject: [PATCH] bug: set host will always undefined --- packages/grpc-native-core/ext/channel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grpc-native-core/ext/channel.cc b/packages/grpc-native-core/ext/channel.cc index 825260e0..f23dbd58 100644 --- a/packages/grpc-native-core/ext/channel.cc +++ b/packages/grpc-native-core/ext/channel.cc @@ -377,7 +377,7 @@ NAN_METHOD(Channel::CreateCall) { if (info[2]->IsString()) { grpc_slice *host = new grpc_slice; *host = - CreateSliceFromString(Nan::To(info[3]).ToLocalChecked()); + CreateSliceFromString(Nan::To(info[2]).ToLocalChecked()); wrapped_call = grpc_channel_create_call( wrapped_channel, parent_call, propagate_flags, GetCompletionQueue(), method, host, MillisecondsToTimespec(deadline), NULL);