-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: plugin limit-count
support to use redis
cluster
#2406
Conversation
return setmetatable(self, mt) | ||
end | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think copy-paste is good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in limit-count-redis
, the main process of incoming
is connect
-> process
-> keepalive
.
but in limit-count-redis-cluster
, the main process of incoming
is only the process
. they were different.
I think it is acceptable for those copied code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@moonming I think we can merge this PR now. please take a look at this PR.
What this PR does / why we need it:
Support for using redis cluster in limit-count plugin.
fix #638
continue PR: #2340
Pre-submission checklist: