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

chore: avoid double susbcription to the same cluster-id/shard #3345

Open
Ivansete-status opened this issue Mar 28, 2025 · 0 comments
Open

chore: avoid double susbcription to the same cluster-id/shard #3345

Ivansete-status opened this issue Mar 28, 2025 · 0 comments
Labels
effort/hours Estimated to be completed in a few hours

Comments

@Ivansete-status
Copy link
Collaborator

Background

By configuring a certain [cluster-id, shard], the node gets automatically subscribed (if relay mounted) to that cluster-id and shard.

If, after that, a manual subscription happens to the same [cluster-id, shard] combination, then we end up having to subscriptions. Then, in case of the node receiving a relay message, the msg-handlr-function is invoked twice.

We need to only have one subscription regardless the number of subscriptions happens to the same [cluster-id, shard] combination.

@Ivansete-status Ivansete-status moved this to Priority in Waku Mar 28, 2025
@Ivansete-status Ivansete-status added the effort/hours Estimated to be completed in a few hours label Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/hours Estimated to be completed in a few hours
Projects
Status: Priority
Development

No branches or pull requests

1 participant