-
Notifications
You must be signed in to change notification settings - Fork 998
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): remove deprecated public modules #3896
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Deprecated in libp2p#3738 Deprecation released with `v0.51.3`. Follow up to libp2p#3896 Part of libp2p#3647
mod jobs; | ||
mod kbucket; |
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.
Why is it not public ?
take a look into get_closest_local_peers signature, it has a kbucket::Key as a parameter
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.
and the same story for handler + ConnectionClosed event
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.
Key
is publicly exposed as KBucketKey
. Does that solve your issue? The handler is an implementation detail. If you need to name it, you can use <Kademlia as NetworkBehaviour>::ConnectionHandler
.
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.
yep, sound good, thanks
Description
This patch removes the 3 out of 4 deprecated public modules. I've left
store
for now because we made some mistakes in declaring that. The items withinstore
still need to be publicly visible but I haven't yet figured out a good way of exporting / naming them. Thus, I've left that to a follow-up PR.Related: #3647.
Notes & open questions
Change checklist