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

Method ReadConfig

phxqueue/config/globalconfig.cpp:55–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55comm::RetCode GlobalConfig::ReadConfig(proto::GlobalConfig &proto) {
56 // sample
57 proto.Clear();
58
59 auto topic_info = proto.add_topic_infos();
60 topic_info->set_topic_id(1000);
61 topic_info->set_topic_name("test");
62 topic_info->set_topic_config_path("");
63 topic_info->set_consumer_config_path("");
64 topic_info->set_store_config_path("");
65 topic_info->set_scheduler_config_path("");
66 topic_info->set_lock_config_path("");
67
68 return comm::RetCode::RET_OK;
69}
70
71comm::RetCode GlobalConfig::Rebuild() {
72 impl_->topic_name2topic_id.clear();

Callers

nothing calls this directly

Calls 1

ClearMethod · 0.80

Tested by

no test coverage detected