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

Method NewTopicConfig

phxqueue_phxrpc/plugin/configfactory.cpp:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56unique_ptr<phxqueue::config::TopicConfig>
57ConfigFactory::NewTopicConfig(const int topic_id, const string &path) {
58 QLVerb("topic_id %d path %s", topic_id, path.c_str());
59
60 auto &&conf(new config::TopicConfig());
61 conf->SetNeedCheck(impl_->need_check);
62 conf->SetFileIfUnset(path);
63 if (conf) conf->LoadIfModified();
64
65 return unique_ptr<config::TopicConfig>(conf);
66}
67
68unique_ptr<phxqueue::config::ConsumerConfig>
69ConfigFactory::NewConsumerConfig(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