Skip to content

Commit

Permalink
refactor: 0: no limit for max
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed May 22, 2020
1 parent 39dd6fb commit 12136c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/router_concurrent_limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func NewRCL(config RCLConfig) elton.Handler {
key := c.Request.Method + " " + c.Route
current, max := limiter.IncConcurrency(key)
defer limiter.DecConcurrency(key)
if current > max {
if max != 0 && current > max {
err = createRCLError(current, max)
return
}
Expand Down

0 comments on commit 12136c6

Please sign in to comment.