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

Method GetAllSubID

phxqueue/config/topicconfig.cpp:282–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282comm::RetCode TopicConfig::GetAllSubID(set<int> &sub_ids) const {
283 sub_ids.clear();
284
285 for (auto &&it : impl_->sub_id2sub) {
286 sub_ids.insert(it.first);
287 }
288 return comm::RetCode::RET_OK;
289}
290
291bool TopicConfig::IsValidSubID(const int sub_id) const {
292 auto &&it = impl_->sub_id2sub.find(sub_id);

Callers 3

CheckTopicConfigMethod · 0.80
TestTopicConfigMethod · 0.80
GetSubIDsByConsumerAddrFunction · 0.80

Calls

no outgoing calls

Tested by 2

CheckTopicConfigMethod · 0.64
TestTopicConfigMethod · 0.64