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

Method IsValidSubID

phxqueue/config/topicconfig.cpp:291–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291bool TopicConfig::IsValidSubID(const int sub_id) const {
292 auto &&it = impl_->sub_id2sub.find(sub_id);
293 return impl_->sub_id2sub.end() != it;
294}
295
296comm::RetCode TopicConfig::GetSubBySubID(const int sub_id, shared_ptr<const proto::Sub> &sub) const {
297 sub = nullptr;

Callers 3

CheckTopicConfigMethod · 0.80
TestTopicConfigMethod · 0.80
GetSubIDsByConsumerAddrFunction · 0.80

Calls

no outgoing calls

Tested by 2

CheckTopicConfigMethod · 0.64
TestTopicConfigMethod · 0.64