提交 12cee05e 编写于 作者: W wangjiawei04

fix cube-api codeformat test=serving

上级 6d9d2e1e
...@@ -98,13 +98,13 @@ class CubeAPI { ...@@ -98,13 +98,13 @@ class CubeAPI {
const std::vector<uint64_t>& keys, const std::vector<uint64_t>& keys,
std::function<void(DictValue*, size_t)> parse, std::function<void(DictValue*, size_t)> parse,
std::string* version); std::string* version);
/** /**
* @brief: get all table names from cube server, thread safe. * @brief: get all table names from cube server, thread safe.
* @param [out] vals: vector of table names * @param [out] vals: vector of table names
* *
*/ */
std::vector<std::string> get_table_names(); std::vector<std::string> get_table_names();
public: public:
static const char* error_msg(int error_code); static const char* error_msg(int error_code);
......
...@@ -153,7 +153,6 @@ int Resource::initialize(const std::string& path, const std::string& file) { ...@@ -153,7 +153,6 @@ int Resource::initialize(const std::string& path, const std::string& file) {
this->cube_config_fullpath = cube_config_fullpath; this->cube_config_fullpath = cube_config_fullpath;
} }
THREAD_SETSPECIFIC(_tls_bspec_key, NULL); THREAD_SETSPECIFIC(_tls_bspec_key, NULL);
return 0; return 0;
} }
...@@ -161,7 +160,6 @@ int Resource::initialize(const std::string& path, const std::string& file) { ...@@ -161,7 +160,6 @@ int Resource::initialize(const std::string& path, const std::string& file) {
// model config // model config
int Resource::general_model_initialize(const std::string& path, int Resource::general_model_initialize(const std::string& path,
const std::string& file) { const std::string& file) {
// TODO: add serving dist op detection, if true, add cube instance init.
if (this->cube_config_fullpath.size() != 0) { if (this->cube_config_fullpath.size() != 0) {
LOG(INFO) << "init cube by config file : " << this->cube_config_fullpath; LOG(INFO) << "init cube by config file : " << this->cube_config_fullpath;
rec::mcube::CubeAPI* cube = rec::mcube::CubeAPI::instance(); rec::mcube::CubeAPI* cube = rec::mcube::CubeAPI::instance();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册