diff options
Diffstat (limited to 'src/remake/content.rs')
| -rw-r--r-- | src/remake/content.rs | 7 |
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()) |
