diff options
| author | tv <tv@krebsco.de> | 2026-10-26 20:45:38 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-26 20:45:38 +0100 |
| commit | 88417aa0660b0766f3c75bf5846361528537e0b9 (patch) | |
| tree | c2fddb5f536b3dcc1c79fd7369462c240ae9bf48 /src/remake/content.rs | |
| parent | c598d9c25bc2d1f07044040aae6e1264ef7ada36 (diff) | |
introduce bounded blob downloads
Diffstat (limited to 'src/remake/content.rs')
| -rw-r--r-- | src/remake/content.rs | 2 |
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); |
