This commit is contained in:
2025-06-09 00:08:53 -04:00
parent ac2701acec
commit 6f730ca26c
2 changed files with 6 additions and 4 deletions

8
.gitignore vendored
View File

@@ -130,9 +130,11 @@ dist
.pnp.* .pnp.*
# galvanic corrosion # galvanic corrosion
build/ /build/
config.json config.json
/user/
.vscode .vscode
# used to attach license to each file
/append.ts # development purposes
/graph.svg

View File

@@ -190,7 +190,7 @@ export class RateLimiter {
* @param interval In seconds: rate at which hit counts will be cleared * @param interval In seconds: rate at which hit counts will be cleared
* @param limit Number of hits (inclusive) before requests are blocked * @param limit Number of hits (inclusive) before requests are blocked
*/ */
constructor(interval: number = 20, limit: number = 2) { constructor(interval: number = 60, limit: number = 10) {
this.#hitLimit = limit; this.#hitLimit = limit;
this.#intervalId = setInterval(() => { this.#intervalId = setInterval(() => {