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

ref: Combine DlqLimitState methods #312

Merged
merged 1 commit into from
Dec 6, 2023
Merged

ref: Combine DlqLimitState methods #312

merged 1 commit into from
Dec 6, 2023

Conversation

loewenheim
Copy link
Contributor

This aligns DlqLimitState with the Rust implementation in getsentry/snuba#5156. To wit:

  • update_invalid_value and should_accept are combined into record_invalid_message, since they're never called independently.
  • We insert some default data if we've never received an invalid message on a partition.

@loewenheim loewenheim requested a review from a team as a code owner December 6, 2023 17:13
@loewenheim loewenheim self-assigned this Dec 6, 2023
Copy link
Member

@lynnagara lynnagara left a comment

Choose a reason for hiding this comment

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

💯

@loewenheim loewenheim merged commit a1cca96 into main Dec 6, 2023
8 checks passed
@loewenheim loewenheim deleted the ref/dlq-limit-state branch December 6, 2023 19:46
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.

None yet

2 participants