| 54 | } |
| 55 | |
| 56 | unique_ptr<phxqueue::config::TopicConfig> |
| 57 | ConfigFactory::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 | |
| 68 | unique_ptr<phxqueue::config::ConsumerConfig> |
| 69 | ConfigFactory::NewConsumerConfig(const int topic_id, const string &path) { |
nothing calls this directly
no test coverage detected