mirror of https://github.com/go-redis/redis.git
Reduce ClusterOptions.MaxRedirects from 16 to 8
This commit is contained in:
parent
cc47cf2439
commit
cac7aa8c36
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue