mirror of
https://gitee.com/sogou/srpc.git
synced 2024-12-21 16:14:54 +08:00
srpc tools : fix the timing to set service_name in rpc command
This commit is contained in:
parent
cf06912fc3
commit
f9105ce7e2
@ -215,9 +215,6 @@ bool RPCController::get_opt(int argc, const char **argv)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this->config.service_name == NULL)
|
||||
this->config.service_name = this->config.project_name;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -274,6 +271,9 @@ bool RPCController::check_args()
|
||||
if (config->prepare_specified_idl_file() == false)
|
||||
return false;
|
||||
|
||||
if (config->service_name == NULL)
|
||||
config->service_name = config->project_name;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user