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!: use single DHT only by default #2322

Merged
merged 6 commits into from
Dec 20, 2023
Merged

Conversation

achingbrain
Copy link
Member

We have a weird dual-DHT setup whereby we have a DHT for public addresses (amino, /ipfs/kad/1.0.0) and a DHT for private addresess (/ipfs/lan/kad/1.0.0).

This is an artefact of the previous libp2p setup whereby there could only be a single DHT implementation at once.

Now we have services we can configure an amino DHT service and if desired an additional lan-only DHT, or the user can just use amino and not pay the overhead of running an extra DHT.

Most content is resolved via the public DHT so running the lan-only DHT gives the user no benefit.

BREAKING CHANGE: the kadDHT function returns a single DHT - see the readme for how to configure amino/lan as before

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

We have a weird dual-DHT setup whereby we have a DHT for public
addresses (amino, `/ipfs/kad/1.0.0`) and a DHT for private addresess
(`/ipfs/lan/kad/1.0.0`).

This is an artefact of the previous libp2p setup whereby there could
only be a single DHT implementation at once.

Now we have services we can configure an amino DHT service and if
desired an additional lan-only DHT, or the user can just use amino
and not pay the overhead of running an extra DHT.

Most content is resolved via the public DHT so running the lan-only
DHT gives the user no benefit.

BREAKING CHANGE: the `kadDHT` function returns a single DHT - see the readme for how to configure amino/lan as before
@achingbrain achingbrain requested a review from a team as a code owner December 18, 2023 17:43
@achingbrain achingbrain marked this pull request as draft December 18, 2023 18:23
@wemeetagain
Copy link
Member

👍

@achingbrain
Copy link
Member Author

Going to merge this after #2319 because #2313 should allow us to do a breaking change to kad-dht without revving libp2p to v2

@achingbrain achingbrain marked this pull request as ready for review December 19, 2023 14:43
@achingbrain achingbrain merged commit c003789 into main Dec 20, 2023
22 checks passed
@achingbrain achingbrain deleted the feat/export-single-dht branch December 20, 2023 08:47
@achingbrain achingbrain mentioned this pull request Dec 20, 2023
This was referenced Jan 18, 2024
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.

2 participants