fix: update comment and export rateLimiter
This commit is contained in:
parent
f21884cce5
commit
4683d8a077
@ -12,8 +12,8 @@ export enum Cookie {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// RateLimiter wraps around the limiter library for logins.
|
// RateLimiter wraps around the limiter library for logins.
|
||||||
// It allows 2 logins every minute and 12 logins every hour.
|
// It allows 2 logins every minute plus 12 logins every hour.
|
||||||
class RateLimiter {
|
export class RateLimiter {
|
||||||
private readonly minuteLimiter = new Limiter(2, "minute")
|
private readonly minuteLimiter = new Limiter(2, "minute")
|
||||||
private readonly hourLimiter = new Limiter(12, "hour")
|
private readonly hourLimiter = new Limiter(12, "hour")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user