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

Method GetQueueInfoIDRankByPubID

phxqueue/config/topicconfig.cpp:324–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322
323
324comm::RetCode TopicConfig::GetQueueInfoIDRankByPubID(const int queue_info_id, const int pub_id, uint64_t &rank) const {
325 rank = 0;
326
327 shared_ptr<const proto::Pub> pub;
328
329 comm::RetCode ret;
330 if (comm::RetCode::RET_OK != (ret = GetPubByPubID(pub_id, pub)) || !pub) {
331 return ret;
332 }
333 return GetQueueInfoIDRankByPub(queue_info_id, pub.get(), rank);
334}
335
336
337bool TopicConfig::IsValidQueue(const int queue_id, const int pub_id, const int sub_id) const {

Callers 2

CheckTopicConfigMethod · 0.80
TestTopicConfigMethod · 0.80

Calls

no outgoing calls

Tested by 2

CheckTopicConfigMethod · 0.64
TestTopicConfigMethod · 0.64