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

feat(gossipsub)!: return typed error from config builder #4445

Merged
merged 7 commits into from
Oct 20, 2023

Conversation

chirag-bgh
Copy link
Contributor

@chirag-bgh chirag-bgh commented Sep 4, 2023

Description

Closes #4412.

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

Copy link
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

Thank you!

This is a breaking change so we'll queue it for the next release. I'll thus mark it is draft so that it doesn't get merged accidentally.

Can you please bump the version of libp2p-gossipsub accordingly and also write a changelog entry? See https://github.com/libp2p/rust-libp2p/blob/master/CONTRIBUTING.md#write-changelog-entries-for-user-facing-changes for details.

protocols/gossipsub/src/error.rs Show resolved Hide resolved
@thomaseizinger thomaseizinger added this to the v0.53.0 milestone Sep 4, 2023
@thomaseizinger thomaseizinger marked this pull request as draft September 4, 2023 23:46
@thomaseizinger thomaseizinger changed the title feat(gossipsub): make Err of config builder a std::Error feat(gossipsub): return typed error from config builder Sep 4, 2023
@thomaseizinger thomaseizinger changed the title feat(gossipsub): return typed error from config builder feat!(gossipsub): return typed error from config builder Sep 4, 2023
Copy link
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

Thanks!

Some more comments.

protocols/gossipsub/CHANGELOG.md Outdated Show resolved Hide resolved
protocols/gossipsub/Cargo.toml Outdated Show resolved Hide resolved
protocols/gossipsub/src/error.rs Show resolved Hide resolved
@thomaseizinger
Copy link
Contributor

Thank you! I queued this into the next milestone. It will likely still be a while until we make another release with breaking changes :)

@mxinden
Copy link
Member

mxinden commented Sep 6, 2023

Thanks @chirag-bgh for your work!

@thomaseizinger thomaseizinger changed the title feat!(gossipsub): return typed error from config builder feat(gossipsub)!: return typed error from config builder Sep 7, 2023
@mergify
Copy link
Contributor

mergify bot commented Sep 24, 2023

This pull request has merge conflicts. Could you please resolve them @chirag-bgh? 🙏

@thomaseizinger thomaseizinger marked this pull request as ready for review October 20, 2023 01:12
@mergify
Copy link
Contributor

mergify bot commented Oct 20, 2023

This pull request has merge conflicts. Could you please resolve them @chirag-bgh? 🙏

@mergify mergify bot merged commit a73b5d9 into libp2p:master Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gossipsub: make Err of config builder a proper error
3 participants