| 169 | } |
| 170 | |
| 171 | comm::RetCode GlobalConfig::GetTopicIDByHandleID(const int handle_id, int &topic_id) const { |
| 172 | topic_id = 0; |
| 173 | auto it = impl_->handle_id2topic_id.find(handle_id); |
| 174 | if (impl_->handle_id2topic_id.end() == it) return comm::RetCode::RET_ERR_RANGE_HANDLE; |
| 175 | topic_id = it->second; |
| 176 | return comm::RetCode::RET_OK; |
| 177 | } |
| 178 | |
| 179 | comm::RetCode GlobalConfig::GetConsumerConfig(const int topic_id, shared_ptr<const ConsumerConfig> &consumer_config) { |
| 180 | consumer_config = nullptr; |
nothing calls this directly
no outgoing calls
no test coverage detected