Skip to content

Commit

Permalink
chore: update fallback rate limit value
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinsandilya committed May 15, 2024
1 parent f8d105b commit 7c35655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/helpers/rateLimitMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const rateLimiters = new Map<number, RateLimiterRedis>();

//We can make this dynamic based on the subscription as well
const RATE_LIMIT_DURATION_IN_MINUTES = 1;
const FALL_BACK_DEFAULT_RATE_LIMIT = 1;
const FALL_BACK_DEFAULT_RATE_LIMIT = 100;

const getRateLimiter = (rateLimit: number): RateLimiterRedis => {
if (!rateLimiters.has(rateLimit)) {
Expand Down

0 comments on commit 7c35655

Please sign in to comment.