-
Notifications
You must be signed in to change notification settings - Fork 1k
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(kad): derive Copy for kbucket::key::Key #5317
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.
LGTM, thanks! @drHuangMHT 🚀 this is ready to be merged right?
Not yet, still need to address clippy lints. |
@jxs Staged, need a re-approval. |
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.
👍🏻
Description
Derive
Copy
forkbucket::key::Key
andkbucket::key::KeyBytes
becauseKey
is almost always used withPeerId
, which isCopy
.This will make it easier to iterate over kbuckets.
Notes & open questions
Quality of life feature.
Change checklist