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

Method GetHandleIDRank

phxqueue/config/topicconfig.cpp:505–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505comm::RetCode TopicConfig::GetHandleIDRank(const int handle_id, int &rank) const {
506 auto &&it = impl_->handle_id2rank.find(handle_id);
507 if (impl_->handle_id2rank.end() == it) return comm::RetCode::RET_ERR_RANGE_HANDLE;
508 rank = it->second;
509 return comm::RetCode::RET_OK;
510}
511
512
513

Callers 3

CheckTopicConfigMethod · 0.80
UpdateConsumeStatMethod · 0.80
UpdateLimitInfoMethod · 0.80

Calls

no outgoing calls

Tested by 1

CheckTopicConfigMethod · 0.64