mirror of
https://github.com/redis/go-redis.git
synced 2025-09-04 09:22:10 +03:00
Add MaxRetries to FailoverOptions
This commit is contained in:
@@ -31,6 +31,8 @@ type FailoverOptions struct {
|
||||
PoolSize int
|
||||
PoolTimeout time.Duration
|
||||
IdleTimeout time.Duration
|
||||
|
||||
MaxRetries int
|
||||
}
|
||||
|
||||
func (opt *FailoverOptions) options() *Options {
|
||||
@@ -47,6 +49,8 @@ func (opt *FailoverOptions) options() *Options {
|
||||
PoolSize: opt.PoolSize,
|
||||
PoolTimeout: opt.PoolTimeout,
|
||||
IdleTimeout: opt.IdleTimeout,
|
||||
|
||||
MaxRetries: opt.MaxRetries,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user