-
Notifications
You must be signed in to change notification settings - Fork 984
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
examples/gossipsub-chat: Add mDNS peer discovery #2996
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.
Just one comment, otherwise LGTM!
I synced my fork and pulled master and getting errors running
Is master building OK? Maybe some refactor needs updating of doc tests? |
You probably have to run it with |
Removing
you get
|
Yep, it generates the event for you so you can delete the definition below :) |
Accepted suggested comment change. |
- Add mDNS behaviour and combine with the Gossipsub behaviour - Added a text prompt for user input. - Modified code and comments slightly to be more similar to the distributed-key-value-store.rs example. - Formatted code with rustfmt
…ers. Updated doc comment describing the example to match.
Co-authored-by: João Oliveira <[email protected]>
Co-authored-by: Max Inden <[email protected]>
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.
Looks good to me. @thomaseizinger can you merge in case you have no more comments?
Description
This PR adds the discovery of other peers using mDNS to the gossipsub example, allowing each peer to not have to know the address of the first peer to connect to.
Links to any relevant issues
N/A
Open Questions
N/A
Change checklist