refactor(ai-moderation): remove unused count variable in stale CB error pruning loop
This commit is contained in:
@@ -990,7 +990,7 @@ export function startPendingAIAnalysisWorker(
|
|||||||
|
|
||||||
// Also prune stale per-conversation CB error counts that have cooled
|
// Also prune stale per-conversation CB error counts that have cooled
|
||||||
// down so old conversations can be retried.
|
// down so old conversations can be retried.
|
||||||
for (const [key, count] of conversationConsecutiveErrors) {
|
for (const [key] of conversationConsecutiveErrors) {
|
||||||
const cbExpire = conversationErrorCooldown.get(key) ?? 0;
|
const cbExpire = conversationErrorCooldown.get(key) ?? 0;
|
||||||
if (cbExpire && now >= cbExpire) {
|
if (cbExpire && now >= cbExpire) {
|
||||||
conversationConsecutiveErrors.delete(key);
|
conversationConsecutiveErrors.delete(key);
|
||||||
|
|||||||
Reference in New Issue
Block a user