-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backfill: add failback to fetch CAR file from PDS (if relay errors) (#…
…855) The main motivation here is that non-archival relay is returning a 4xx error for fetching repos, and we want to try fetching those from the actual PDS when that happens. This code adds a new code branch when a relay CAR fetch fails to do an identity lookup to find the account's PDS instance, and fetches the CAR from there. For the search code specifically, it re-uses an existing identity directory, to reduce double-resolution. This also refactors how fetch URLs are constructed to use just hostnames. UPDATE: should probably *not* merge this to `main` until Jaz can review
- Loading branch information
Showing
2 changed files
with
63 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters