From aeeb0d711762450dd40ed1f8fd723e82cfcb446e Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Wed, 22 Jul 2020 20:16:21 -0700 Subject: [PATCH] Remove unnecessary parsing of status payload in subchannel.cc --- src/core/ext/filters/client_channel/subchannel.cc | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/core/ext/filters/client_channel/subchannel.cc b/src/core/ext/filters/client_channel/subchannel.cc index 389d7edc02e..9bae661c7e5 100644 --- a/src/core/ext/filters/client_channel/subchannel.cc +++ b/src/core/ext/filters/client_channel/subchannel.cc @@ -331,19 +331,6 @@ class Subchannel::ConnectedSubchannelStateWatcher void OnConnectivityStateChange(grpc_connectivity_state new_state, const absl::Status& status) override { Subchannel* c = subchannel_; - absl::optional keepalive_throttling = - status.GetPayload(grpc_core::keepalive_throttling_key); - if (keepalive_throttling.has_value()) { - int new_keepalive_time = -1; - if (absl::SimpleAtoi(std::string(keepalive_throttling.value()), - &new_keepalive_time)) { - c->ThrottleKeepaliveTime(new_keepalive_time); - } else { - gpr_log(GPR_ERROR, - "Subchannel=%p: Illegal keepalive throttling value %s", c, - std::string(keepalive_throttling.value()).c_str()); - } - } MutexLock lock(&c->mu_); switch (new_state) { case GRPC_CHANNEL_TRANSIENT_FAILURE: