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

Method hex_log_id

src/brpc/builtin/rpcz_service.cpp:117–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void RpczService::hex_log_id(::google::protobuf::RpcController* cntl_base,
118 const ::brpc::RpczRequest*,
119 ::brpc::RpczResponse*,
120 ::google::protobuf::Closure* done) {
121 ClosureGuard done_guard(done);
122 Controller *cntl = static_cast<Controller*>(cntl_base);
123 cntl->http_response().set_content_type("text/plain");
124 FLAGS_rpcz_hex_log_id = true;
125 cntl->response_attachment().append("log_id is hexadecimal");
126}
127
128void RpczService::dec_log_id(::google::protobuf::RpcController* cntl_base,
129 const ::brpc::RpczRequest*,

Callers 1

TestRpczMethod · 0.80

Calls 2

set_content_typeMethod · 0.80
appendMethod · 0.45

Tested by 1

TestRpczMethod · 0.64