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

Method PullMasterKV

oneflow/core/control/rpc_client.cpp:142–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void RpcClient::PullMasterKV(const std::string& k,
143 std::function<void(const std::string&)> VGetter) {
144 ClientCall<CtrlMethod::kPullKV> call;
145 call.mut_request()->set_key(k);
146 call(GetMasterStub());
147 VGetter(call.response().val());
148}
149
150void RpcClient::PullKV(const std::string& k, std::string* v) {
151 PullKV(k, [&](const std::string& i) { *v = i; });

Callers 1

InitProcessCtxMethod · 0.45

Calls 2

callFunction · 0.85
mut_requestMethod · 0.45

Tested by

no test coverage detected