Skip to content

Commit

Permalink
updated rate limiter based on reviewers comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveLuhman committed Oct 11, 2024
1 parent a06e23f commit bdedca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const rateLimiter = rateLimit({
max: 100, // Limit each IP to 100 requests per `window` (here, per 15 minutes)
standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers
legacyHeaders: false, // Disable the `X-RateLimit-*` headers
skipSuccessfulRequests: true, // Skip middleware incrementer for successful requests
skipSuccessfulRequests: false, // Skip middleware incrementer for successful requests
})

export const createAccountLimiter = rateLimit({
Expand Down

0 comments on commit bdedca9

Please sign in to comment.