1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-17 20:17:02 +03:00

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

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