-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(CommitteeObserver): post consensus mem leak #1859
base: stage
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well spotted! I'd just add more comments. Approving but please fix linter
CommitteeObserver
- post conesnsus mem leakThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could alternatively maybe use ttlcache.Cache
(seems like we use it a lot whenever we need to keep map from growing).
2e17fa6
to
e4ed505
Compare
Description
Closes #1857
Remove 12 old slots after each message processing.
NOTE: maybe we need tracking of latest actual slot in order to ignore old messages? what if we already removed but got new msg?