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

Method Get

phxqueue_phxrpc/consumer/consumer.cpp:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52phxqueue::comm::RetCode
53Consumer::Get(const phxqueue::comm::proto::GetRequest &req,
54 phxqueue::comm::proto::GetResponse &resp) {
55
56 static __thread StoreClient store_client;
57 auto ret = store_client.ProtoGet(req, resp);
58 if (phxqueue::comm::RetCode::RET_OK != ret) {
59 QLErr("ProtoGet ret %d", phxqueue::comm::as_integer(ret));
60 }
61 return ret;
62}
63
64phxqueue::comm::RetCode
65Consumer::Add(phxqueue::comm::proto::AddRequest &req,

Callers

nothing calls this directly

Calls 2

as_integerFunction · 0.85
ProtoGetMethod · 0.80

Tested by

no test coverage detected