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

disable providing of content in Bitswap #1

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

aschmahmann
Copy link
Contributor

@aschmahmann aschmahmann commented Oct 20, 2021

Code edited in GH browser. Should run go build before merging 😄. Update: it builds.

Comment on lines +173 to +175
// TODO: Ideally we could configure bitswap to not serve content over bitswap.
// The gateway's job is not to serve content over libp2p, just http.
// Perhaps we're willing to respond to requests from other gateways in a cluster.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@whyrusleeping WDYT? There are advantages to serving libp2p content here (e.g. so that all gateways behind a single HTTP endpoint behave similarly and share caches), but it could also not be worth the bother or confusion to do so.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I'm not really sure what the right way forward here is yet. I think we might want to do something like have the gateways be stateless and just peer to a common cluster node? this particular thing is worth discussing more broadly, but is also outside the scope of the PR here

Copy link
Member

@whyrusleeping whyrusleeping left a comment

Choose a reason for hiding this comment

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

Woo! First PR! Thanks!

@whyrusleeping whyrusleeping merged commit 46c697f into master Oct 20, 2021
@whyrusleeping whyrusleeping deleted the feat/disable-bitswap-providing branch October 20, 2021 21:37
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