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

Method IsValidPubID

phxqueue/config/topicconfig.cpp:242–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242bool TopicConfig::IsValidPubID(const int pub_id) const {
243 auto &&it = impl_->pub_id2pub.find(pub_id);
244 return impl_->pub_id2pub.end() != it;
245}
246
247comm::RetCode TopicConfig::GetPubByPubID(const int pub_id, shared_ptr<const proto::Pub> &pub) const {
248 pub = nullptr;

Callers 4

EnqueueMethod · 0.80
CheckTopicConfigMethod · 0.80
TestTopicConfigMethod · 0.80
GetPubIDsByStoreIDFunction · 0.80

Calls

no outgoing calls

Tested by 2

CheckTopicConfigMethod · 0.64
TestTopicConfigMethod · 0.64