| 47 | } |
| 48 | |
| 49 | int 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 | |
| 64 | int StoreToolImpl::Get(phxrpc::OptMap &opt_map) { |
| 65 | phxqueue::comm::proto::GetRequest req; |
nothing calls this directly
no outgoing calls
no test coverage detected