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

Fix discovered event emission. #2065

Merged
merged 5 commits into from May 6, 2021
Merged

Fix discovered event emission. #2065

merged 5 commits into from May 6, 2021

Conversation

dvc94ch
Copy link
Contributor

@dvc94ch dvc94ch commented May 4, 2021

mdns keeps rediscovering nodes. this PR changes that to only emit events for new nodes it discovered. In addition we make sure to only send a query if it is really needed. Some logging is added for debugging purposes.

@dvc94ch
Copy link
Contributor Author

dvc94ch commented May 5, 2021

@mxinden thoughts?

@mxinden
Copy link
Member

mxinden commented May 5, 2021

Could you please describe the issue the status quo is facing, and the solution you are proposing, in the pull request description?

protocols/mdns/src/behaviour.rs Outdated Show resolved Hide resolved
protocols/mdns/src/behaviour.rs Outdated Show resolved Hide resolved
@dvc94ch dvc94ch requested a review from mxinden May 6, 2021 13:25
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.

Great. Thanks for the additional commits.

Would you mind:

  • Adding an entry in protocols/mdns/CHANGELOG.md.
  • Bumping the patch version in protocols/mdns/Cargo.toml.

I can cut a patch release later today or tomorrow if you like.

@mxinden mxinden merged commit 8988ac2 into libp2p:master May 6, 2021
@mxinden
Copy link
Member

mxinden commented May 6, 2021

libp2p-mdns v0.30.2 tagged and published.

@dvc94ch
Copy link
Contributor Author

dvc94ch commented May 6, 2021

Thanks

@dvc94ch dvc94ch deleted the mdns-fix branch May 6, 2021 15:30
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.

None yet

2 participants