forked from mirror/redis
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…
Reference in New Issue