| 95 | } |
| 96 | |
| 97 | void RpcClient::PushKV(const std::string& k, std::function<void(std::string*)> VSetter) { |
| 98 | ClientCall<CtrlMethod::kPushKV> call; |
| 99 | call.mut_request()->set_key(k); |
| 100 | VSetter(call.mut_request()->mutable_val()); |
| 101 | call(GetResponsibleStub(k)); |
| 102 | } |
| 103 | |
| 104 | void RpcClient::PushMasterKV(const std::string& k, std::function<void(std::string*)> VSetter) { |
| 105 | ClientCall<CtrlMethod::kPushKV> call; |
no test coverage detected