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

Use New Routing V1 #17

Merged
merged 3 commits into from
Oct 16, 2023
Merged

Use New Routing V1 #17

merged 3 commits into from
Oct 16, 2023

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Oct 10, 2023

Also added some more options to allow users to add more servers to proxy too (per routing type).

@hacdias hacdias marked this pull request as ready for review October 10, 2023 13:06
Copy link
Contributor

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

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

Looks good, thanks 🙏. Haven't gotten a chance to run it and push on it though. Had some small comments and suggestions.

client.go Outdated Show resolved Hide resolved
client.go Outdated Show resolved Hide resolved
client.go Show resolved Hide resolved
client.go Outdated Show resolved Hide resolved
github.com/libp2p/go-libp2p-resource-manager v0.5.1
github.com/libp2p/go-libp2p-routing-helpers v0.2.3
github.com/urfave/cli/v2 v2.8.1
github.com/ipfs/boxo v0.13.2-0.20231009073559-45c797e0ccea
Copy link
Contributor

Choose a reason for hiding this comment

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

TODO: use a released boxo when available

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, the reason I'm not using latest is because client.Client is not exposed 🥲

Comment on lines +70 to +71
log.Printf("Listening on http://0.0.0.0:%d", port)
log.Printf("Delegated Routing API on http://127.0.0.1:%d/routing/v1", port)
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be fine, but also a little confusing since routing/v1 is on 127.0.0.1 and all other interfaces too.

main.go Outdated
Comment on lines 35 to 36
&cli.StringSliceFlag{
Name: "content-endpoints",
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure how much we need these yet. Fine to keep them if you'd like, but also reasonable to pull them until we know more specifically what we (or other users) might need.

There's a bunch of added configurability in kubo and some we could plausibly want that isn't there yet either. (e.g. DHT enabled vs disabled, cid.contact enabled vs disabled, if we do an IPNS Put should it fail if it doesn't Put to all of the routers/are some fallbacks, etc.).

main.go Outdated Show resolved Hide resolved
Copy link
Contributor

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

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

LGTM

@hacdias
Copy link
Member Author

hacdias commented Oct 16, 2023

Merging for now. Following up on #18 once Boxo is released.

@hacdias hacdias merged commit 85dafb2 into main Oct 16, 2023
@hacdias hacdias deleted the routing-v1 branch October 16, 2023 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants