Skip to content

Commit

Permalink
chore: remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bchrobot committed Jul 29, 2023
1 parent dd36ddb commit 5a7fa9f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/LeakyBucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,13 @@ export const makeDrainBucket = (
.exec();

const lockVal = await redis.get(key);
console.log('lockVal', lockVal);
console.log('randomValue', randomValue);

if (lockVal !== null && lockVal === randomValue) {
const newVal = await redis.decrby(
`${bucketTypeName}:${bucketName}:${LeakyBucketSpecialKeys.BucketCurrentCapacity}`,
bucketSpec.drainCount,
);

console.log('newVal', newVal);

// remove from overloaded buckets if now below capacity
if (newVal < bucketSpec.capacity) {
await redis.srem(
Expand Down

0 comments on commit 5a7fa9f

Please sign in to comment.