fix: serveFromStore does a guaranteed-miss S3 lookup on every cache hit #82

Merged
benvin merged 1 commits from benvin/fix-servefromstore-double-lookup into master 2026-07-02 20:07:30 +10:00

1 Commits

Author SHA1 Message Date
unkinben 530c7a77fc fix: drop guaranteed-miss S3 lookup in serveFromStore
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
serveFromStore first called store.Download with the bare content hash as
the S3 key, which never matches real keys (blobs/sha256/<hash>), so every
cached blob serve paid an extra 404 round-trip before retrying with the
correct BlobKey. Remove the dead first attempt.

Refs #78
2026-07-02 00:23:18 +10:00