-
Notifications
You must be signed in to change notification settings - Fork 152
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
rate limit filter #169
rate limit filter #169
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #169 +/- ##
===========================================
+ Coverage 43.14% 43.29% +0.15%
===========================================
Files 33 37 +4
Lines 1757 1834 +77
===========================================
+ Hits 758 794 +36
- Misses 890 928 +38
- Partials 109 112 +3
Continue to review full report at Codecov.
|
…to update_dubbo � Conflicts: � go.mod � go.sum
pls fix the go.mod confliction. |
# Conflicts: # go.mod # go.sum
@@ -165,7 +189,7 @@ func getAPIFilterFuncsWithPluginsGroup(plu *config.PluginsInUse) []context.Filte | |||
|
|||
// found with group name | |||
for _, groupName := range plu.GroupNames { | |||
pwfMap, found := groupWithPluginsMap[groupName] | |||
pwfMap, found := groupCache[groupName] | |||
if found { |
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.
if !found { continue } for _, pwf := range pwfMap { tmpMap[pwf.Name] = pwf.fn }
@@ -0,0 +1,62 @@ | |||
/* |
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.
what does this code make sense?
type Exact struct { | ||
apiNames map[string]string | ||
|
||
mu sync.RWMutex |
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.
FYI,I think pointer is better
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.
mu *sync.RWMutex, this way?
* update dubbo-go to v1.5.6 & fmt sth. * fix fmt * Update go.mod * update dubbo-go to v1.5.6 & fmt sth. * update dubbo-go to v1.5.6 & fmt sth. * fix fmt * rateLimit filter * add licence header * fix imports * add license header * add license header * fix ci * fix matcher var inline * fix ci * fix sync.RWMutex * errors.warp * test table * remove unreachable statement * Pattern pattern,omitempty * update develop * update the docs for ratelimit * update develop * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter Co-authored-by: Zhenxu Ke <[email protected]> Former-commit-id: fbaf7ed
* update dubbo-go to v1.5.6 & fmt sth. * fix fmt * Update go.mod * update dubbo-go to v1.5.6 & fmt sth. * update dubbo-go to v1.5.6 & fmt sth. * fix fmt * rateLimit filter * add licence header * fix imports * add license header * add license header * fix ci * fix matcher var inline * fix ci * fix sync.RWMutex * errors.warp * test table * remove unreachable statement * Pattern pattern,omitempty * update develop * update the docs for ratelimit * update develop * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter Co-authored-by: Zhenxu Ke <[email protected]> Former-commit-id: 4cb8c13 [formerly fbaf7ed] Former-commit-id: 83790e7
* update dubbo-go to v1.5.6 & fmt sth. * fix fmt * Update go.mod * update dubbo-go to v1.5.6 & fmt sth. * update dubbo-go to v1.5.6 & fmt sth. * fix fmt * rateLimit filter * add licence header * fix imports * add license header * add license header * fix ci * fix matcher var inline * fix ci * fix sync.RWMutex * errors.warp * test table * remove unreachable statement * Pattern pattern,omitempty * update develop * update the docs for ratelimit * update develop * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter * ratelimit filter Co-authored-by: Zhenxu Ke <[email protected]>
What this PR does:
Which issue(s) this PR fixes:
Fixes #10
Special notes for your reviewer:
Does this PR introduce a user-facing change?: