Skip to content

Commit 2960952

Browse files
authored
Merge pull request #1316 from YiweiZhuang/yzhuang/add_limiter_in_cluster_client
allow cluster client to use limiter
2 parents eecd319 + 5cd9e7f commit 2960952

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cluster.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ type ClusterOptions struct {
7777
IdleCheckFrequency time.Duration
7878

7979
TLSConfig *tls.Config
80+
Limiter Limiter
8081
}
8182

8283
func (opt *ClusterOptions) init() {
@@ -147,6 +148,7 @@ func (opt *ClusterOptions) clientOptions() *Options {
147148
IdleCheckFrequency: disableIdleCheck,
148149

149150
TLSConfig: opt.TLSConfig,
151+
Limiter: opt.Limiter,
150152
}
151153
}
152154

0 commit comments

Comments
 (0)