mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +03:00
allow cluster client use limiter
This commit is contained in:
parent
c9f2e839d2
commit
5cd9e7f2f8
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user