Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 9b8b586

Browse files
committed
reset continuous failure count
1 parent 338ced2 commit 9b8b586

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ServiceStack.Redis/RedisSentinel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ private RedisSentinelWorker GetValidSentinelWorker()
312312
this.worker = GetNextSentinel();
313313
GetRedisManager();
314314
this.worker.BeginListeningForConfigurationChanges();
315+
this.failures = 0; //reset
315316
return this.worker;
316317
}
317318
catch (RedisException ex)

0 commit comments

Comments
 (0)