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

Method set_index

example/dynamic_partition_echo_c++/server.cpp:47–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected