From 5cd9e7f2f871a2ac9f29d5852cdda7518f09ce50 Mon Sep 17 00:00:00 2001 From: Yiwei Zhuang Date: Thu, 30 Apr 2020 18:35:46 -0700 Subject: [PATCH] allow cluster client use limiter --- cluster.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cluster.go b/cluster.go index 2cf6e01..fd9681d 100644 --- a/cluster.go +++ b/cluster.go @@ -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, } }