mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Reduce ClusterOptions.MaxRedirects from 16 to 8
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user