From 0b61a3c96176f1a0b173ce1aa66c3c3a7924fb6c Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 16 Feb 2023 11:03:43 +0300 Subject: [PATCH] [#2260] network/cache: Ignore clients only on `Dial` errors The problem is that accidental timeout errors can make us to ignore other nodes for some time. The primary purpose of the whole ignore mechanism is not to degrade in case of failover. For this case, closing connection and limiting the amount of dials is enough. Signed-off-by: Evgenii Stratonikov --- pkg/network/cache/multi.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/network/cache/multi.go b/pkg/network/cache/multi.go index 96defa7c..e459ae42 100644 --- a/pkg/network/cache/multi.go +++ b/pkg/network/cache/multi.go @@ -202,7 +202,6 @@ func (s *singleClient) invalidate() { _ = s.client.Close() } s.client = nil - s.lastAttempt = time.Now() s.Unlock() }