fixing batch before moving to the apps

This commit is contained in:
Boki 2025-06-19 21:33:31 -04:00
parent 8c2f98e010
commit 3534a2c47b
14 changed files with 43 additions and 884 deletions

View file

@ -24,7 +24,7 @@ export class QueueRateLimiter {
const key = this.getRuleKey(rule.level, rule.queueName, rule.handler, rule.operation);
const limiter = new RateLimiterRedis({
storeClient: this.redisClient,
keyPrefix: rule.config.keyPrefix || `rl:${key}`,
keyPrefix: `rl:${key}`,
points: rule.config.points,
duration: rule.config.duration,
blockDuration: rule.config.blockDuration || 0,
@ -224,7 +224,7 @@ export class QueueRateLimiter {
queueName,
handler,
operation,
appliedRule,
appliedRule: applicableRule,
limit,
};
} catch (error) {
@ -233,7 +233,7 @@ export class QueueRateLimiter {
queueName,
handler,
operation,
appliedRule,
appliedRule: applicableRule,
};
}
}