Skip to content

Commit

Permalink
Increase rate limit threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
DQGriffin committed Aug 29, 2023
1 parent f19e8c8 commit 796a836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/helpers/rateLimit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const rateLimit = (headers: any) => {
let interval = headers['x-rate-limit-window']
let timeout = 0

if (requestsRemaining < 1) timeout = interval * 1000
if (requestsRemaining < 2) timeout = interval * 1000
return timeout
}

Expand Down

0 comments on commit 796a836

Please sign in to comment.