aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake/content.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-26 05:38:41 +0100
committertv <tv@krebsco.de>2026-10-26 05:38:41 +0100
commit771665daeb95f7f136545f8768c31003a82823d6 (patch)
treede3dfa27601f06a7155164ef7feefd7c4a0720f2 /src/remake/content.rs
parente69f05d182718621e97f0662de5f05105658d96e (diff)
wrap unix timestamps in newtype
Diffstat (limited to 'src/remake/content.rs')
-rw-r--r--src/remake/content.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/remake/content.rs b/src/remake/content.rs
index e5d78c5..f3e549e 100644
--- a/src/remake/content.rs
+++ b/src/remake/content.rs
@@ -85,7 +85,12 @@ async fn fetch<H: Host>(host: &H, hash: [u8; 32], reference: &ContentRef) -> Opt
}
/// Drops content no open remake in `records` refers to (after its grace period).
-pub(super) fn prune<H: Host>(host: &H, records: &[(String, Record)], now: u64, grace: u64) {
+pub(super) fn prune<H: Host>(
+ host: &H,
+ records: &[(String, Record)],
+ now: crate::clock::UnixMillis,
+ grace: u64,
+) {
let referenced: HashSet<[u8; 32]> = records
.iter()
.filter(|(_, record)| record.phase(now, grace).is_open())