From 7d397110847b5a50305833f5c4439fa70c9a2416 Mon Sep 17 00:00:00 2001 From: Alexandr Rastopchin <47109336+rastop123g@users.noreply.github.com> Date: Thu, 7 Mar 2024 22:11:36 +0500 Subject: [PATCH] fix issue 2539, do not kill the keepaliveWorker task when the ping timeout occurs (#2555) --- pkg/routing/redisrouter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/routing/redisrouter.go b/pkg/routing/redisrouter.go index 57967181..da40a85a 100644 --- a/pkg/routing/redisrouter.go +++ b/pkg/routing/redisrouter.go @@ -246,7 +246,7 @@ func (r *RedisRouter) keepaliveWorker(startedChan chan error) { for ping := range pings.Channel() { if time.Since(time.Unix(ping.Timestamp, 0)) > statsUpdateInterval { logger.Infow("keep alive too old, skipping", "timestamp", ping.Timestamp) - break + continue } r.nodeMu.Lock()