fix issue 2539, do not kill the keepaliveWorker task when the ping timeout occurs (#2555)

This commit is contained in:
Alexandr Rastopchin
2024-03-07 09:11:36 -08:00
committed by GitHub
parent 6c94185aa6
commit 7d39711084
+1 -1
View File
@@ -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()