mirror of
https://github.com/redis/go-redis.git
synced 2025-07-25 08:21:55 +03:00
allow cluster client use limiter
This commit is contained in:
@ -76,6 +76,7 @@ type ClusterOptions struct {
|
||||
IdleCheckFrequency time.Duration
|
||||
|
||||
TLSConfig *tls.Config
|
||||
Limiter Limiter
|
||||
}
|
||||
|
||||
func (opt *ClusterOptions) init() {
|
||||
@ -145,6 +146,7 @@ func (opt *ClusterOptions) clientOptions() *Options {
|
||||
IdleCheckFrequency: disableIdleCheck,
|
||||
|
||||
TLSConfig: opt.TLSConfig,
|
||||
Limiter: opt.Limiter,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user