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

Method PhxEcho

phxqueue_phxrpc/app/lock/lock_tool_impl.cpp:32–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30LockToolImpl::~LockToolImpl() {}
31
32int LockToolImpl::PhxEcho(phxrpc::OptMap &opt_map) {
33 google::protobuf::StringValue req;
34 google::protobuf::StringValue resp;
35
36 if (NULL == opt_map.Get('s')) return -1;
37
38 req.set_value(opt_map.Get('s'));
39
40 LockClient client;
41 int ret = client.PhxEcho(req, &resp);
42 printf("%s return %d\n", __func__, ret);
43 printf("resp: {\n%s}\n", resp.DebugString().c_str());
44
45 return ret;
46}
47
48int LockToolImpl::GetLockInfo(phxrpc::OptMap &opt_map) {
49 phxqueue::comm::proto::GetLockInfoRequest req;

Callers

nothing calls this directly

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected