fix incorrect interval check in sync from disk stage (#2408)

* fix incorrect interval check in sync from disk stage

* simplify check
This commit is contained in:
Aarnav 2024-07-16 13:52:25 +02:00 committed by GitHub
parent 074a16f844
commit 791598228e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,7 +97,7 @@ where
.map(|m| m.last_time);
if let Some(last) = last {
if (last + self.interval) < current_time() {
if current_time().saturating_sub(last) < self.interval {
return Ok(());
}
}