mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
chore: rateLimiter.js
This commit is contained in:
parent
97bd8f9e5a
commit
c0e91e205c
@ -22,7 +22,7 @@ class RateLimiter {
|
|||||||
this.rateLimiterMemory = new RateLimiterMemory(options)
|
this.rateLimiterMemory = new RateLimiterMemory(options)
|
||||||
}
|
}
|
||||||
|
|
||||||
async #middleware (req, res, next) {
|
async #middleware (req, res) {
|
||||||
if (res.locals.rateLimit) return
|
if (res.locals.rateLimit) return
|
||||||
|
|
||||||
// If unset, assume points pool is shared to all visitors of each route
|
// If unset, assume points pool is shared to all visitors of each route
|
||||||
|
Loading…
Reference in New Issue
Block a user