-
Notifications
You must be signed in to change notification settings - Fork 957
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: derive Clone
for mdns::Event
#3606
Conversation
Hmm why the check failed? Is it a timeout? |
The WebRTC tests are flaky unfortunately. It is an upstream bug that is fixed in the latest version but we can't upgrade at the moment. See webrtc-rs/webrtc#413. I restarted the job, it will likely pass now. |
Clone
for mdns::Event
Patch version bump is good enough as this isn't breaking. |
Unreleased patch version 0.43.1 bumped. Added entry for PR 3606: Deriving 'Clone' for 'mdns::Event'
Approvals have been dismissed because the PR was updated after the send-it
label was applied.
@@ -1,3 +1,8 @@ | |||
# 0.43.1 [unreleased] |
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.
This missed a version bump in protocols/mdns/Cargo.toml
. I will make the bump with the upcoming release pull request.
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.
Bump happening through #3694.
Missed in libp2p#3606.
In previous PR #3606 we've made `mdns::Event` `Clone`, but cloning single-use iterators doesn't sound right. Also you have to create an iterator from the actual data returned before putting it into events. So in this PR the iterators are replaced by `Vec`, as it's the type the data originally come from. Related #3612. Pull-Request: #3621.
Description
Derive trait
Clone
formdns::Event
. This makes cloning its contents without destroying type information possible.Related #3593.
Notes & open questions
CHANGELOG to be filled. Should we open a new minor version for the change?
Change checklist