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/state/host.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/state/host.rs') diff --git a/src/state/host.rs b/src/state/host.rs index 6506274..f6c460d 100644 --- a/src/state/host.rs +++ b/src/state/host.rs @@ -100,11 +100,15 @@ impl Host for AppState { } } - fn fetch_content(&self, hash: [u8; 32]) -> impl Future>> + Send { + fn fetch_content( + &self, + hash: [u8; 32], + size: u64, + ) -> impl Future>> + Send { let state = self.clone(); async move { let peers = state.active_peers_on_local_epoch().await; - crate::swarm::blob::fetch_content(&state, hash, peers).await + crate::swarm::blob::fetch_content(&state, hash, size, peers).await } } -- cgit v1.3.1