main #1

Merged
heavyweaponsgal merged 5 commits from slonk/bingus-blog:main into main 2024-05-03 01:27:49 +03:00
Showing only changes of commit 759a792043 - Show all commits

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) {