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

fix: http blockbroker loads gateways from routing #519

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

achingbrain
Copy link
Member

Use the new http gateway block broker to load gateways from the routing.

If we can find http gateways for a block we now use it, falling back to the default list of gateways if the routing is slow or it gives providers that fail to supply the block.

One change here is that unless you are using sessions, trustless gateways become disposable so we can't sort them by reliability any more.

I'm not sure if we have any stats on the real-world impact of being able to do this? It may be more relevant for sessions anyway, I think.

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

Use the new http gateway block broker to load gateways from the routing.

If we can find http gateways for a block we now use it, falling back to
the default list of gateways if the routing is slow or it gives providers
that fail to supply the block.
@achingbrain achingbrain requested a review from a team as a code owner April 25, 2024 12:28
Copy link
Member

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

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

in general, lgtm

Comment on lines 15 to 16
// 2023-10-03: IPNS, Origin, and Block/CAR support from https://ipfs-public-gateway-checker.on.fleek.co/
'https://cloudflare-ipfs.com',
Copy link
Member

Choose a reason for hiding this comment

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

we might want to remove this one?

Copy link
Member Author

Choose a reason for hiding this comment

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

It does appear to be down. As does https://ipfs-public-gateway-checker.on.fleek.co

Le sigh.

@achingbrain achingbrain merged commit 6a62d1c into main Apr 26, 2024
18 checks passed
@achingbrain achingbrain deleted the fix/gateway-block-broker-load-gateways-from-routing branch April 26, 2024 04:43
@achingbrain achingbrain mentioned this pull request Apr 25, 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.

None yet

2 participants