MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / PushKV

Method PushKV

oneflow/core/control/rpc_client.cpp:97–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void 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
104void RpcClient::PushMasterKV(const std::string& k, std::function<void(std::string*)> VSetter) {
105 ClientCall<CtrlMethod::kPushKV> call;

Callers 2

PushPortFunction · 0.45
IBVerbsCommNetMethod · 0.45

Calls 2

callFunction · 0.85
mut_requestMethod · 0.45

Tested by

no test coverage detected