Skip to content

Conversation

YiweiZhuang
Copy link
Contributor

code users can pass a limiter struct into cluster client then allow each node client in the cluster to use that limiter

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

TLSConfig: opt.TLSConfig,
Limiter: opt.Limiter,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we would want a limiter per node

@walktall
Copy link

@vmihailenco Hi, any idea on this PR? We have the same issue that may get help from this. Thanks.

@vmihailenco
Copy link
Collaborator

Looks good - thanks!

@vmihailenco vmihailenco merged commit 2960952 into redis:master May 21, 2020
@walktall
Copy link

walktall commented May 21, 2020

@vmihailenco I believe we should pass a Limiter constructor to the option instead of a Limiter, as mentioned by @ThomasJannaud
Will try to make a PR for this.

@vmihailenco
Copy link
Collaborator

@walktall indeed. Please hold on - I think I have a solution.

@walktall
Copy link

@walktall indeed. Please hold on - I think I have a solution.

Sure, thanks!

vmihailenco added a commit that referenced this pull request May 21, 2020
@vmihailenco
Copy link
Collaborator

@walktall please check #1332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants