Merge pull request #1316 from YiweiZhuang/yzhuang/add_limiter_in_cluster_client

allow cluster client to use limiter
This commit is contained in:
Vladimir Mihailenco 2020-05-21 09:12:59 +03:00 committed by GitHub
commit 2960952204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,7 @@ type ClusterOptions struct {
IdleCheckFrequency time.Duration
TLSConfig *tls.Config
Limiter Limiter
}
func (opt *ClusterOptions) init() {
@ -147,6 +148,7 @@ func (opt *ClusterOptions) clientOptions() *Options {
IdleCheckFrequency: disableIdleCheck,
TLSConfig: opt.TLSConfig,
Limiter: opt.Limiter,
}
}