MCPcopy Create free account
hub / github.com/baidu/braft / get

Method get

example/counter/server.cpp:338–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336 return _counter->fetch_add(request, response, done);
337 }
338 void get(::google::protobuf::RpcController* controller,
339 const ::example::GetRequest* request,
340 ::example::CounterResponse* response,
341 ::google::protobuf::Closure* done) {
342 brpc::ClosureGuard done_guard(done);
343 return _counter->get(response);
344 }
345private:
346 Counter* _counter;
347};

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected