Skip to content
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

Do not trap on pruning non-existing aggregations or zero weighted events #2479

Merged
merged 5 commits into from
May 29, 2024

Conversation

frederikrothenberger
Copy link
Member

@frederikrothenberger frederikrothenberger commented May 28, 2024

This PR fixes a bug introduced in #2449, which subsequently led to a rollback in proposal 130068.

This refactors the code to accommodate violated expectations and proceed without trapping.
Zero weighted event are now correctly ignored by the pruning logic.

This PR fixes a bug introduced in #2449, which subsequently led to a
rollback in proposal 130068.

This refactors the code to accommodate violated expectations and proceed
without trapping.
Zero weighted event are now correctly ignored by the pruning logic.
Copy link
Collaborator

@lmuntaner lmuntaner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rubber stamp, LGTM!

Copy link
Collaborator

@przydatek przydatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with minor suggestions. Thanks!

src/internet_identity/src/stats/event_stats.rs Outdated Show resolved Hide resolved
src/internet_identity/src/stats/event_stats.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@lmuntaner lmuntaner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of comments, but it looks good to me!

@frederikrothenberger frederikrothenberger added this pull request to the merge queue May 29, 2024
Merged via the queue into main with commit b16cdd1 May 29, 2024
65 checks passed
@frederikrothenberger frederikrothenberger deleted the frederik/bugfix branch May 29, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants