aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake/content.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-01 20:40:52 +0100
committertv <tv@krebsco.de>2026-11-01 20:40:52 +0100
commit9e2529fe4ce61e57b9473c2ac85359b3c3f5cb65 (patch)
tree1a434d5400cf4bdc58df43e95b8d6156a1356fea /src/remake/content.rs
parent6d9b462e1bb1e2ebbda6c0dcdcfe22a15d4b4cbe (diff)
remake: download wakes on end instead of ticker
Diffstat (limited to 'src/remake/content.rs')
-rw-r--r--src/remake/content.rs5
1 files changed, 1 insertions, 4 deletions
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<H: Host>(
.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;
}
}