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(identify): include pushed Info in Event::Pushed #4527

Merged
merged 14 commits into from
Oct 20, 2023

Conversation

dhuseby
Copy link
Contributor

@dhuseby dhuseby commented Sep 20, 2023

Description

Starting in #3980, we make more use of the identify push protocol by actively notifying the peer when our locally supported protocols change. We emit an event (Pushed) to the user in that case. This event however does not include what we pushed.

Users might be interested in the internal changes that we push to remote peers. This patch adds the identify Info to the Pushed variant.

Fixes #4332.

Notes & open questions

Previous broken PRs: #4335

Change checklist

  • I have performed a self-review of my own code
  • Discuss this speculative pull request in the issue
  • 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

@dhuseby dhuseby changed the title Add local protocols changed feat(Identify): Add local protocols changed Sep 20, 2023
@dhuseby dhuseby self-assigned this Sep 20, 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.

Cool, thank you! Nice PR description :)

I made some minor comments.

protocols/identify/CHANGELOG.md Show resolved Hide resolved
protocols/identify/src/protocol.rs Outdated Show resolved Hide resolved
protocols/identify/src/behaviour.rs Outdated Show resolved Hide resolved
@thomaseizinger thomaseizinger changed the title feat(Identify): Add local protocols changed feat(identify): Add local protocols changed Sep 20, 2023
@thomaseizinger thomaseizinger changed the title feat(identify): Add local protocols changed feat(identify): include pushed Info in Event::Pushed Sep 20, 2023
@thomaseizinger thomaseizinger added this to the v0.53.0 milestone Sep 20, 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!

Excited for this to land :)

@mergify
Copy link
Contributor

mergify bot commented Sep 24, 2023

This pull request has merge conflicts. Could you please resolve them @dhuseby? 🙏

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.

Thank you!

@dhuseby
Copy link
Contributor Author

dhuseby commented Oct 3, 2023

PR #4563 hosed up this PR. I'll fix it soon, just not right now.

@thomaseizinger thomaseizinger marked this pull request as ready for review October 20, 2023 05:48
@mergify mergify bot merged commit eb8fffa 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
3 participants