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!: independent dht and routing v1 flags #113

Merged
merged 5 commits into from
Apr 9, 2024
Merged

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Apr 8, 2024

Extracted from #111. Does the following:

  • Introduces dht-routing flag. Can be accelerated, standard or off. This is personally useful for me locally to disable the accelerated DHT.
  • Replaces routing with routing-v1-endpoints which supports more than one endpoint. Default is cid.contact.
  • You can now use DHT Routing and Routing V1 independently (before it was always DHT+cid.contact vs Routing V1).

In the process, I also fixed the typo in the flag dht-shared-host, and cleaned up the comma-separated flags to use StringsSlice.

@hacdias hacdias self-assigned this Apr 8, 2024
@hacdias hacdias mentioned this pull request Apr 8, 2024
3 tasks
Name of the flag was inconsistent with the rest of the documentation and
environmental variable. Likely typo.
… list

Just use the provided StringsSlice instead of writing our own method for
comma-separated list options. This also allows users to simply pass the flag
multiple times with the different values.
@hacdias hacdias changed the title feat: accelerated dht flag feat!: independent dht and routing v1 flags Apr 8, 2024
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

lgtm, small cosmetics inline

setup.go Show resolved Hide resolved
setup.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
@hacdias hacdias enabled auto-merge (squash) April 9, 2024 07:06
@hacdias hacdias merged commit 51c9228 into main Apr 9, 2024
10 checks passed
@hacdias hacdias deleted the feat/accelerated-dht-flag branch April 9, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: 🎉 Done
Development

Successfully merging this pull request may close these issues.

2 participants