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

Reduce ClusterOptions.MaxRedirects from 16 to 8

This commit is contained in:
Vladimir Mihailenco 2018-02-27 15:01:10 +02:00
parent cc47cf2439
commit cac7aa8c36

View File

@ -58,7 +58,7 @@ func (opt *ClusterOptions) init() {
if opt.MaxRedirects == -1 { if opt.MaxRedirects == -1 {
opt.MaxRedirects = 0 opt.MaxRedirects = 0
} else if opt.MaxRedirects == 0 { } else if opt.MaxRedirects == 0 {
opt.MaxRedirects = 16 opt.MaxRedirects = 8
} }
if opt.RouteByLatency { if opt.RouteByLatency {