From 9e2529fe4ce61e57b9473c2ac85359b3c3f5cb65 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 1 Nov 2026 20:40:52 +0100 Subject: remake: download wakes on end instead of ticker --- src/remake/content.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/remake/content.rs') diff --git a/src/remake/content.rs b/src/remake/content.rs index d036b87..467d083 100644 --- a/src/remake/content.rs +++ b/src/remake/content.rs @@ -11,7 +11,6 @@ use std::collections::HashSet; use std::sync::Arc; -use std::time::Duration; use tracing::{info, warn}; @@ -59,9 +58,7 @@ pub(super) async fn ensure( .ok_or_else(|| format!("couldn't download content {}", reference.blake3)); } // Someone else is downloading it. - while host.remake().content_fetch_running(&hash) { - tokio::time::sleep(Duration::from_millis(500)).await; - } + host.remake().content_fetch_ended(&hash).await; } } -- cgit v1.3.1