srpc tools : fix the timing to set service_name in rpc command

This commit is contained in:
holmes1412 2023-03-29 12:23:14 +08:00
parent cf06912fc3
commit f9105ce7e2

View File

@ -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;
}