1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-17 20:17:02 +03:00

ring: ignore pool timeout when pinging shards.

This commit is contained in:
Vladimir Mihailenco 2015-06-16 10:46:46 +03:00
parent 651d0b0662
commit 74f9f4f7a0

View File

@ -203,7 +203,7 @@ func (ring *Ring) heartbeat() {
for _, shard := range ring.shards {
err := shard.Client.Ping().Err()
if shard.Vote(err == nil) {
if shard.Vote(err == nil || err == errPoolTimeout) {
log.Printf("redis: ring shard state changed: %s", shard)
rebalance = true
}