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

Unregsiter duplicate (listening to the same topic) subscriptions individually #1336

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

youroff
Copy link
Contributor

@youroff youroff commented Aug 3, 2024

This PR fixes #1335. Having two subscriptions listening to the same topic, unsubscribe on one subscription would remove both references from the registry disrupting messages heading for the second subscription. Thе fix is to use unregister_match with correspondent doc_id instead of plain unregister targening field_key only.

Copy link
Contributor

@benwilson512 benwilson512 left a comment

Choose a reason for hiding this comment

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

Fantastic, thanks!

@benwilson512 benwilson512 merged commit 5daf8d7 into absinthe-graphql:main Aug 3, 2024
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.

With duplicate subscriptions unsubscribing of one of the subs kills both records in Registry
2 participants