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): implement signedPeerRecord #5785

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

drHuangMHT
Copy link
Contributor

@drHuangMHT drHuangMHT commented Dec 31, 2024

Description

May close #4017.

Notes & open questions

pb-rs now uses Cow<'_,T> for the compiled Rust structs. But with borrowed type in the struct, FramedRead can no longer process frames correctly(trait bound not statisfied).

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

@drHuangMHT
Copy link
Contributor Author

drHuangMHT commented Dec 31, 2024

Oh CI will compile the protobuf code, didn't see that.
EDIT: Wait how does this work?

Copy link
Member

@dariusc93 dariusc93 left a comment

Choose a reason for hiding this comment

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

Left some comments :)

protocols/identify/src/behaviour.rs Outdated Show resolved Hide resolved
protocols/identify/src/behaviour.rs Outdated Show resolved Hide resolved
protocols/identify/src/behaviour.rs Outdated Show resolved Hide resolved
@getong
Copy link

getong commented Jan 3, 2025

you might rebase to main branch, as zlib license has added to ci, #5769

@getong
Copy link

getong commented Jan 3, 2025

Files in /home/runner/work/rust-libp2p/rust-libp2p/protocols/identify have changed, please write a changelog entry in /home/runner/work/rust-libp2p/rust-libp2p/protocols/identify/CHANGELOG.md

I think you might write some changelog text into this file, just like,

implement signedPeerRecord

the pr might be okay now.

@drHuangMHT
Copy link
Contributor Author

the pr might be okay now.

Thanks for the review! Working on tests right now.

@drHuangMHT
Copy link
Contributor Author

version 0.45.1 of libp2p-identify hasn't been released on crates.io yet, I'm not sure whether I should add a changelog entry right now.

@drHuangMHT drHuangMHT marked this pull request as ready for review January 4, 2025 05:27
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.

identify: implement SignedPeerRecord
3 participants