Skip to content

Commit d6f5154

Browse files
committed
Modify rate limits to be more forgiving
Subject to more fine tuning
1 parent ce5bf48 commit d6f5154

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/maple.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ var options = {
5656

5757
const slower = slowDown({
5858
windowMs: 2 * 60 * 1000,
59-
delayAfter: 5,
59+
delayAfter: 50,
6060
delayMs: (hits) => {
6161
if (hits <= 15) return hits * 100;
6262
return (hits - 15) * 1000 + 2000;
@@ -66,7 +66,7 @@ const slower = slowDown({
6666

6767
const limiter = rateLimit({
6868
windowMs: 2 * 60 * 1000,
69-
limit: 35,
69+
limit: 100,
7070
})
7171

7272
try {

0 commit comments

Comments
 (0)