-
Notifications
You must be signed in to change notification settings - Fork 1k
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: rename InsufficientPeers to NoPeersSubscribedToTopic for clarity #5912
Conversation
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 PR! Left a comment regarding the version bump.
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.
Can you update the libp2p-gossipsub
version in the Cargo.toml workspace? :)
Done! Please have a look 🚀 |
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.
Hi, and thanks for this. Left a comment
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.
LGTM! Thanks!
Approvals have been dismissed because the PR was updated after the send-it
label was applied.
The `InsufficientPeers` error was unclear about whether it meant no peers were connected at all or no peers were subscribed to the topic. Rename it to `NoPeersSubscribedToTopic` to make it clear that this error occurs when trying to publish to a topic that has no subscribed peers. Fixes libp2p#5907 Pull-Request: libp2p#5912.
Description
The
InsufficientPeers
error was unclear about whether it meant no peers were connected at all or no peers were subscribed to the topic. Rename it toNoPeersSubscribedToTopic
to make it clear that this error occurs when trying to publish to a topic that has no subscribed peers.Fixes #5907
Change checklist
protocols/gossipsub/CHANGELOG.md
protocols/gossipsub/Cargo.toml
to 0.48.2