-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
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.
Looks good, thanks 🙏. Haven't gotten a chance to run it and push on it though. Had some small comments and suggestions.
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 |
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.
TODO: use a released boxo when available
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.
Yeah, the reason I'm not using latest is because client.Client
is not exposed 🥲
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) |
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.
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
&cli.StringSliceFlag{ | ||
Name: "content-endpoints", |
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.
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.).
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.
LGTM
Merging for now. Following up on #18 once Boxo is released. |
Also added some more options to allow users to add more servers to proxy too (per routing type).