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

Method IncreaseCount

oneflow/core/control/rpc_client.cpp:169–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169int32_t RpcClient::IncreaseCount(const std::string& k, int32_t v) {
170 ClientCall<CtrlMethod::kIncreaseCount> call;
171 call.mut_request()->set_key(k);
172 call.mut_request()->set_val(v);
173 call(GetResponsibleStub(k));
174 return call.response().val();
175}
176
177void RpcClient::EraseCount(const std::string& k) {
178 ClientCall<CtrlMethod::kEraseCount> call;

Callers

nothing calls this directly

Calls 2

callFunction · 0.85
mut_requestMethod · 0.45

Tested by

no test coverage detected