Skip to content

Commit 5cd9e7f

Browse files
committed
allow cluster client use limiter
1 parent c9f2e83 commit 5cd9e7f

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
@@ -76,6 +76,7 @@ type ClusterOptions struct {
7676
IdleCheckFrequency time.Duration
7777

7878
TLSConfig *tls.Config
79+
Limiter Limiter
7980
}
8081

8182
func (opt *ClusterOptions) init() {
@@ -145,6 +146,7 @@ func (opt *ClusterOptions) clientOptions() *Options {
145146
IdleCheckFrequency: disableIdleCheck,
146147

147148
TLSConfig: opt.TLSConfig,
149+
Limiter: opt.Limiter,
148150
}
149151
}
150152

0 commit comments

Comments
 (0)