allow cluster client use limiter

This commit is contained in:
Yiwei Zhuang 2020-04-30 18:35:46 -07:00
parent c9f2e839d2
commit 5cd9e7f2f8
1 changed files with 2 additions and 0 deletions

View File

@ -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,
}
}