buzz
buzz copied to clipboard
feat(media): add sharded compatibility reads
Summary
Add deterministic hash-leading, community-scoped media key helpers and make every relay read/probe path prefer the sharded object while falling back to the legacy flat key only on absence. Public Blossom URLs and writes remain unchanged.
Related issue
None found; requested in the linked Buzz channel thread.
Testing
bin/cargo test -p buzz-media(110 passed, 1 live-MinIO test ignored)bin/cargo test -p buzz-relay --lib handlers::imeta(11 passed)bin/cargo clippy --workspace --all-targets -- -D warningsbin/cargo fmt --check
Stack
- This PR: compatibility readers; safe to deploy with legacy writes.
- Upload-record and storage-index compatibility.
- Configurable legacy/dual/sharded writes.