Skip to content
Snippets Groups Projects
Commit de7dec71 authored by Yang Gao's avatar Yang Gao Committed by GitHub
Browse files

Merge pull request #11542 from yang-g/grpc_cli

Still create channel if remotedb is false. Just do not use it in the …
parents 892afc20 32e16783
No related branches found
No related tags found
No related merge requests found
...@@ -445,12 +445,10 @@ bool GrpcTool::CallMethod(int argc, const char** argv, ...@@ -445,12 +445,10 @@ bool GrpcTool::CallMethod(int argc, const char** argv,
bool print_mode = false; bool print_mode = false;
std::shared_ptr<grpc::Channel> channel = std::shared_ptr<grpc::Channel> channel =
FLAGS_remotedb grpc::CreateChannel(server_address, cred.GetCredentials());
? grpc::CreateChannel(server_address, cred.GetCredentials())
: nullptr;
parser.reset(new grpc::testing::ProtoFileParser(channel, FLAGS_proto_path, parser.reset(new grpc::testing::ProtoFileParser(
FLAGS_protofiles)); FLAGS_remotedb ? channel : nullptr, FLAGS_proto_path, FLAGS_protofiles));
if (FLAGS_binary_input) { if (FLAGS_binary_input) {
formatted_method_name = method_name; formatted_method_name = method_name;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment