fix: misc (#130)

This commit is contained in:
wtudio 2024-12-19 19:56:58 +08:00 committed by GitHub
parent 0c7686b699
commit f3a8d83a23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 4 deletions

View File

@ -0,0 +1,3 @@
#!/bin/bash
./aimrt_main --cfg_file_path=./cfg/examples_cpp_executor_timer_cfg.yaml

View File

@ -1,3 +0,0 @@
#!/bin/bash
./aimrt_main --cfg_file_path=./cfg/examples_cpp_timer_cfg.yaml

View File

@ -19,7 +19,12 @@ using ServiceFunc = aimrt::util::Function<aimrt_function_service_func_ops_t>;
inline std::string GetFullFuncName(
std::string_view rpc_type, std::string_view service_name, std::string_view func_name) {
return std::string(rpc_type) + ":/" + std::string(service_name) + "/" + std::string(func_name);
std::string full_name;
full_name.reserve(rpc_type.size() + service_name.size() + func_name.size() + 3);
full_name.append(rpc_type).append(":/").append(service_name).append("/").append(func_name);
return full_name;
}
class ServiceBase {