mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-06-04 13:09:32 +00:00
Reviewer flagged that prune was mutating pendingMessagingRequests under index iteration. Concrete failure: if prune drops the entry at the current idx, the seq shifts and `idx.inc()` skips the next slot. Hoist the single prune call to after the outer loop. Prune is idempotent on the final-state filter, so doing it once at the end is equivalent to calling it per-error-path while keeping idx aligned. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>