-
Notifications
You must be signed in to change notification settings - Fork 639
fix(events): use stable subscription ids and remove by id #3563
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(events): use stable subscription ids and remove by id #3563
Conversation
Hey @VolodymyrBg, can you provide a testcase that would be failing before this change? |
added a test case |
This looks very strange. Usually go tests go in a separate |
sh... really did a bad thing and didn't even notice this, sorry |
it was my copypaste mistake |
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.
Thanks for the test, and the fix. This is clearly better.
Can you also switch your indentation in the test file to use tabs instead of spaces?
Corrected |
Pull Request is not mergeable
Replace index-based deletion with stable id matching in Producer.Start and assign ids from a monotonically increasing counter in Subscribe. This fixes incorrect removals after slice compaction while keeping behavior otherwise unchanged.