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

Method GetTopicIDByHandleID

phxqueue/config/globalconfig.cpp:171–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171comm::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
179comm::RetCode GlobalConfig::GetConsumerConfig(const int topic_id, shared_ptr<const ConsumerConfig> &consumer_config) {
180 consumer_config = nullptr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected