Skip to content

Commit

Permalink
remove unnecessary handling of bug scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
akuzni2 committed Jun 23, 2024
1 parent 0dde725 commit d824a3e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions core/services/relay/evm/mercury/wsrpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d824a3e

Please sign in to comment.