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

Method PushMasterKV

oneflow/core/control/rpc_client.cpp:104–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void 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
111void RpcClient::PushKV(const std::string& k, const std::string& v) {
112 PushKV(k, [&](std::string* o) { *o = v; });

Callers 1

InitProcessCtxMethod · 0.45

Calls 2

callFunction · 0.85
mut_requestMethod · 0.45

Tested by

no test coverage detected