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

Method Add

phxqueue_phxrpc/app/store/store_tool_impl.cpp:49–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49int StoreToolImpl::Add(phxrpc::OptMap &opt_map) {
50 phxqueue::comm::proto::AddRequest req;
51 phxqueue::comm::proto::AddResponse resp;
52
53 //TODO: fill req from opt_map
54
55
56 StoreClient client;
57 int ret = client.Add(req, &resp);
58 printf("%s return %d\n", __func__, ret);
59 printf("resp: {\n%s}\n", resp.DebugString().c_str());
60
61 return ret;
62}
63
64int StoreToolImpl::Get(phxrpc::OptMap &opt_map) {
65 phxqueue::comm::proto::GetRequest req;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected