This commit is contained in:
slonkazoid 2024-05-02 20:20:07 +03:00
parent 8678758440
commit 759a792043
Signed by: slonk
SSH key fingerprint: SHA256:tbZfJX4IOvZ0LGWOWu5Ijo8jfMPi78TU7x1VoEeCIjM

View file

@ -111,6 +111,7 @@ impl Cache {
let old_size = self.0.len(); let old_size = self.0.len();
let mut i = 0; let mut i = 0;
// TODO: multithread
self.0 self.0
.retain_async(|k, v| { .retain_async(|k, v| {
if get_mtime(k).is_some_and(|mtime| mtime == v.mtime) { if get_mtime(k).is_some_and(|mtime| mtime == v.mtime) {