| 115 | } |
| 116 | |
| 117 | void 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 | |
| 128 | void RpczService::dec_log_id(::google::protobuf::RpcController* cntl_base, |
| 129 | const ::brpc::RpczRequest*, |