summaryrefslogtreecommitdiffstats
path: root/src/remake/content.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/remake/content.rs')
-rw-r--r--src/remake/content.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remake/content.rs b/src/remake/content.rs
index f3e549e..d036b87 100644
--- a/src/remake/content.rs
+++ b/src/remake/content.rs
@@ -66,7 +66,7 @@ pub(super) async fn ensure<H: Host>(
}
async fn fetch<H: Host>(host: &H, hash: [u8; 32], reference: &ContentRef) -> Option<Arc<Vec<u8>>> {
- match host.fetch_content(hash).await {
+ match host.fetch_content(hash, reference.size).await {
Ok(bytes) if bytes.len() as u64 == reference.size => {
info!(content = %reference.blake3, bytes = bytes.len(), "Downloaded remake content");
let bytes = Arc::new(bytes);