Skip to content

Commit

Permalink
fix: rate limiter err
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
  • Loading branch information
cameri committed Feb 2, 2023
1 parent a505659 commit 7778cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/request-handlers/rate-limiter-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const rateLimiterMiddleware = async (request: Request, response: Response
if (await isRateLimited(clientAddress, currentSettings)) {
response.destroy()

return next(new Error('Rate-limited'))
return
}

next()
Expand Down

0 comments on commit 7778cd1

Please # to comment.