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

Method GetQueueInfoByQueueInfoID

phxqueue/config/topicconfig.cpp:455–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455comm::RetCode TopicConfig::GetQueueInfoByQueueInfoID(const int queue_info_id, shared_ptr<const proto::QueueInfo> &queue_info) const {
456 queue_info = nullptr;
457
458 auto &&it = impl_->queue_info_id2queue_info.find(queue_info_id);
459 if (impl_->queue_info_id2queue_info.end() != it) {
460 queue_info = it->second;
461 return comm::RetCode::RET_OK;
462 }
463 return comm::RetCode::RET_ERR_RANGE_QUEUE_INFO;
464}
465
466bool TopicConfig::ShouldSkip(const comm::proto::QItem &item, const int sub_id, const int queue_info_id) const {
467 auto &&proto = GetProto();

Callers 3

GetQueueIDMethod · 0.80
CheckTopicConfigMethod · 0.80
TestTopicConfigMethod · 0.80

Calls

no outgoing calls

Tested by 2

CheckTopicConfigMethod · 0.64
TestTopicConfigMethod · 0.64