[fixit] Fix too many pings test (#30579)

* [2many] Fix too many pings test

* secondary fix

* Revert "secondary fix"

This reverts commit f8c0dbd72d.
pull/30593/head
Craig Tiller 3 years ago committed by GitHub
parent 8f537b9780
commit b7e8b3a9c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/core/ext/filters/client_channel/client_channel.cc

@ -1626,6 +1626,10 @@ grpc_error_handle ClientChannel::DoPingLocked(grpc_transport_op* op) {
complete_pick->subchannel.get());
RefCountedPtr<ConnectedSubchannel> connected_subchannel =
subchannel->connected_subchannel();
if (connected_subchannel == nullptr) {
return GRPC_ERROR_CREATE_FROM_STATIC_STRING(
"LB pick for ping not connected");
}
connected_subchannel->Ping(op->send_ping.on_initiate,
op->send_ping.on_ack);
return GRPC_ERROR_NONE;

Loading…
Cancel
Save