| 66 | } |
| 67 | |
| 68 | unique_ptr<phxqueue::config::ConsumerConfig> |
| 69 | ConfigFactory::NewConsumerConfig(const int topic_id, const string &path) { |
| 70 | QLVerb("topic_id %d path %s", topic_id, path.c_str()); |
| 71 | |
| 72 | auto &&conf(new config::ConsumerConfig()); |
| 73 | conf->SetNeedCheck(impl_->need_check); |
| 74 | conf->SetFileIfUnset(path); |
| 75 | if (conf) conf->LoadIfModified(); |
| 76 | |
| 77 | return unique_ptr<config::ConsumerConfig>(conf); |
| 78 | } |
| 79 | |
| 80 | unique_ptr<phxqueue::config::StoreConfig> |
| 81 | ConfigFactory::NewStoreConfig(const int topic_id, const string &path) { |
nothing calls this directly
no test coverage detected