From d824a3e85e38f03bf91673beec20fbde23db9529 Mon Sep 17 00:00:00 2001 From: AlexKuznicki Date: Sun, 23 Jun 2024 15:24:07 -0600 Subject: [PATCH] remove unnecessary handling of bug scenario --- core/services/relay/evm/mercury/wsrpc/client.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/services/relay/evm/mercury/wsrpc/client.go b/core/services/relay/evm/mercury/wsrpc/client.go index 12f262c8045..53359d4589b 100644 --- a/core/services/relay/evm/mercury/wsrpc/client.go +++ b/core/services/relay/evm/mercury/wsrpc/client.go @@ -272,17 +272,6 @@ func (w *client) Transmit(ctx context.Context, req *pb.TransmitRequest) (resp *p } func (w *client) handleWSClientError(err error) { - // if the underlying client is closed by another goroutine we need to reset the transport - state := w.conn.GetState() - if state != connectivity.Ready && state != connectivity.Connecting { - w.logger.Infow("Transport is resetting - connection state unusable", "state", w.conn.GetState()) - select { - case w.chResetTransport <- struct{}{}: - default: - w.logger.Debugf("Transport is already resetting") - } - } - if errors.Is(err, context.DeadlineExceeded) { w.timeoutCountMetric.Inc() cnt := w.consecutiveTimeoutCnt.Add(1)