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

Method set_index

example/selective_echo_c++/server.cpp:46–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 EchoServiceImpl() : _index(0) {}
45 virtual ~EchoServiceImpl() {}
46 void set_index(size_t index, int64_t sleep_us) {
47 _index = index;
48 _sleep_us = sleep_us;
49 }
50 virtual void Echo(google::protobuf::RpcController* cntl_base,
51 const example::EchoRequest* request,
52 example::EchoResponse* response,

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected