1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +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

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