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

Method fetch_add

example/counter/server.cpp:332–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330public:
331 explicit CounterServiceImpl(Counter* counter) : _counter(counter) {}
332 void fetch_add(::google::protobuf::RpcController* controller,
333 const ::example::FetchAddRequest* request,
334 ::example::CounterResponse* response,
335 ::google::protobuf::Closure* done) {
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,

Callers

nothing calls this directly

Calls 1

fetch_addMethod · 0.45

Tested by

no test coverage detected