From 88417aa0660b0766f3c75bf5846361528537e0b9 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 26 Oct 2026 20:45:38 +0100 Subject: introduce bounded blob downloads --- src/remake/content.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/remake/content.rs') 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( } async fn fetch(host: &H, hash: [u8; 32], reference: &ContentRef) -> Option>> { - 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); -- cgit v1.3.1