| 63 | } |
| 64 | |
| 65 | void RpcController::Reset() { |
| 66 | std::lock_guard<simple_spinlock> l(lock_); |
| 67 | if (call_) { |
| 68 | CHECK(finished()); |
| 69 | } |
| 70 | call_.reset(); |
| 71 | required_server_features_.clear(); |
| 72 | credentials_policy_ = CredentialsPolicy::ANY_CREDENTIALS; |
| 73 | messenger_ = nullptr; |
| 74 | outbound_sidecars_total_bytes_ = 0; |
| 75 | } |
| 76 | |
| 77 | bool RpcController::finished() const { |
| 78 | if (call_) { |