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

Method Add

phxqueue_phxrpc/consumer/consumer.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64phxqueue::comm::RetCode
65Consumer::Add(phxqueue::comm::proto::AddRequest &req,
66 phxqueue::comm::proto::AddResponse &resp) {
67 phxqueue::producer::ProducerOption opt;
68 phxqueue_phxrpc::producer::Producer producer(opt);
69 auto ret = producer.SelectAndAdd(req, resp, nullptr, nullptr);
70 if (phxqueue::comm::RetCode::RET_OK != ret) {
71 QLErr("Producer::SelectAndAdd ret %d", phxqueue::comm::as_integer(ret));
72 }
73 return ret;
74}
75
76phxqueue::comm::RetCode
77Consumer::GetAddrScale(const phxqueue::comm::proto::GetAddrScaleRequest &req,

Callers

nothing calls this directly

Calls 2

as_integerFunction · 0.85
SelectAndAddMethod · 0.80

Tested by

no test coverage detected