MCPcopy Create free account
hub / github.com/Tencent/phxqueue / NewStoreConfig

Method NewStoreConfig

phxqueue_phxrpc/plugin/configfactory.cpp:80–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80unique_ptr<phxqueue::config::StoreConfig>
81ConfigFactory::NewStoreConfig(const int topic_id, const string &path) {
82 QLVerb("topic_id %d path %s", topic_id, path.c_str());
83
84 auto &&conf(new config::StoreConfig());
85 conf->SetNeedCheck(impl_->need_check);
86 conf->SetFileIfUnset(path);
87 if (conf) conf->LoadIfModified();
88
89 return unique_ptr<config::StoreConfig>(conf);
90}
91
92unique_ptr<phxqueue::config::SchedulerConfig>
93ConfigFactory::NewSchedulerConfig(const int topic_id, const string &path) {

Callers

nothing calls this directly

Calls 3

SetFileIfUnsetMethod · 0.80
LoadIfModifiedMethod · 0.80
SetNeedCheckMethod · 0.45

Tested by

no test coverage detected