| 68 | } |
| 69 | |
| 70 | void RpcContext::RespondSuccess() { |
| 71 | if (AreResultsTracked()) { |
| 72 | result_tracker_->RecordCompletionAndRespond(call_->header().request_id(), |
| 73 | response_pb_); |
| 74 | } else { |
| 75 | VLOG(4) << call_->remote_method().service_name() << ": Sending RPC success response for " |
| 76 | << call_->ToString() << ":" << std::endl << SecureDebugString(*response_pb_); |
| 77 | TRACE_EVENT_ASYNC_END2("rpc_call", "RPC", this, |
| 78 | "response", pb_util::PbTracer::TracePb(*response_pb_), |
| 79 | "trace", trace()->DumpToString()); |
| 80 | call_->RespondSuccess(*response_pb_); |
| 81 | delete this; |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | void RpcContext::RespondNoCache() { |
| 86 | if (AreResultsTracked()) { |