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

protocols/gossipsub: Fix elided lifetime on gossipsub config builder #2409

Merged
merged 4 commits into from
Dec 30, 2021

Conversation

laptou
Copy link
Contributor

@laptou laptou commented Dec 29, 2021

  • The Gossipsub config builder is currently hard to use b/c its error type is &str, and due to lifetime elision, &self needs to live as long as this &str. This PR fixes that.

Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

Looks good to me. @divagant-martian @AgeManning any comments?

@divagant-martian
Copy link
Contributor

lgtm!

@mxinden mxinden changed the title gossipsub: fix elided lifetime on gossipsub config builder protocols/gossipsub: Fix elided lifetime on gossipsub config builder Dec 30, 2021
@mxinden mxinden merged commit 3749dd5 into libp2p:master Dec 30, 2021
@laptou laptou deleted the fix-gossipsub-builder branch December 30, 2021 20:44
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.

3 participants