Skip to content

Commit

Permalink
Double rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
bbedward authored Sep 7, 2022
1 parent ac22e65 commit 3b945ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func main() {
}))
// Rate limiting middleware
app.Use(httprate.Limit(
50, // requests
100, // requests
1*time.Minute, // per duration
// an oversimplified example of rate limiting by a custom header
httprate.WithKeyFuncs(func(r *http.Request) (string, error) {
Expand Down

0 comments on commit 3b945ba

Please sign in to comment.