MCPcopy Create free account
hub / github.com/apache/brpc / Echo

Method Echo

test/brpc_server_unittest.cpp:360–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358 EchoServiceV2() : ncalled(0) {}
359 virtual ~EchoServiceV2() {}
360 virtual void Echo(google::protobuf::RpcController*,
361 const v2::EchoRequest* request,
362 v2::EchoResponse* response,
363 google::protobuf::Closure* done) {
364 brpc::ClosureGuard done_guard(done);
365 response->set_value(request->value() + 1);
366 ncalled.fetch_add(1);
367 }
368 butil::atomic<int> ncalled;
369};
370

Callers

nothing calls this directly

Calls 3

fetch_addMethod · 0.80
set_valueMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected