Skip to content

Commit

Permalink
debug api issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ewansheldon committed Jan 14, 2025
1 parent 8dd933c commit 19992a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const { redisClient } = require("./redis");

const limited = async ip => {
console.log(redisClient.isOpen);
console.log(redisClient.isReady);
const key = `rateLimit:${ip}`
const reqLimit = 100;
const visits = await redisClient.INCR(key);
Expand Down

0 comments on commit 19992a8

Please sign in to comment.