You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix memory leaks and race conditions in redisReceiver
- Use delete instead of undefined to properly remove map entries
- Clean up resolved promises to prevent indefinite accumulation
- Delete timed-out promises to avoid memory leaks
- Add isActive check in getValue to prevent promises after close
- Track lastProcessedId to prevent message loss with >100 messages
All changes maintain existing behavior while fixing memory leaks
and race conditions identified in code review.
Co-authored-by: Abanoub Ghadban <AbanoubGhadban@users.noreply.github.com>
0 commit comments