Skip to content

Commit

Permalink
fixing rate limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
david emioma committed Mar 31, 2024
1 parent 3826d85 commit a91a556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export const redis = new Redis({
});

export const apiRatelimit = new Ratelimit({
redis,
redis: redis ?? Redis.fromEnv(),
limiter: Ratelimit.slidingWindow(5, "1 m"),
});

0 comments on commit a91a556

Please sign in to comment.