feat: add small help to see how much time is left in cache
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
a228ec82a3
commit
15620da103
@ -79,6 +79,11 @@ impl Cache {
|
|||||||
tracing::debug!("cache has expired");
|
tracing::debug!("cache has expired");
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tracing::debug!(
|
||||||
|
"cache is valid for: {} mins",
|
||||||
|
cache_duration.saturating_sub(file_modified_last).as_secs() / 60
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user