Skip to content
Snippets Groups Projects
Commit 32e16783 authored by yang-g's avatar yang-g
Browse files

Still create channel if remotedb is false. Just do not use it in the file parsing

parent 8399f92f
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