| 102 | } |
| 103 | |
| 104 | void RpcClient::PushMasterKV(const std::string& k, std::function<void(std::string*)> VSetter) { |
| 105 | ClientCall<CtrlMethod::kPushKV> call; |
| 106 | call.mut_request()->set_key(k); |
| 107 | VSetter(call.mut_request()->mutable_val()); |
| 108 | call(GetMasterStub()); |
| 109 | } |
| 110 | |
| 111 | void RpcClient::PushKV(const std::string& k, const std::string& v) { |
| 112 | PushKV(k, [&](std::string* o) { *o = v; }); |
no test coverage detected