mirror of
https://github.com/Dasemu/Grove.git
synced 2026-11-26 23:36:11 +00:00
fix(daemon): keep purge confirmations across slow pass cycles
A gap of more than 20 min between two confirmations reset the wait, but a cycle over ~80 repos took ~25 min, so no deletion was ever confirmed. Only a gap over 6 h starts over now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0f83e9d30b
commit
d73f0c9463
3 files changed
+8
-3
No files matched your search
@@ -909,7 +909,7 @@ fn purge_if_gone(
|
||||
let first = {
|
||||
let mut map = gone_since.lock().unwrap();
|
||||
let entry = map.entry(repo.to_path_buf()).or_insert((now, now));
|
||||
if now.saturating_sub(entry.1) > 2 * window {
|
||||
if now.saturating_sub(entry.1) > purge::STALE_AFTER_SECS {
|
||||
// Stale: start over.
|
||||
*entry = (now, now);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user