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(kad): remove deprecated public modules #3896

Merged
merged 6 commits into from
May 9, 2023

Conversation

thomaseizinger
Copy link
Contributor

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 within store 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

  • 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

@mergify

This comment was marked as resolved.

@mxinden mxinden added the send-it label May 9, 2023
@mergify mergify bot merged commit 3165b12 into master May 9, 2023
@mergify mergify bot deleted the feat/kad/remove-deprecated-elements branch May 9, 2023 02:50
mxinden added a commit to mxinden/rust-libp2p that referenced this pull request Jun 6, 2023
Deprecated in libp2p#3738

Deprecation released with `v0.51.3`.

Follow up to libp2p#3896

Part of libp2p#3647
mod jobs;
mod kbucket;
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

yep, sound good, thanks

mergify bot pushed a commit that referenced this pull request Oct 25, 2023
Deprecated in #3738.
Follow up to #3896.
Part of #3647.

Pull-Request: #4035.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants