mirror of
https://github.com/telemt/telemt.git
synced 2026-05-01 17:34:09 +03:00
Format
This commit is contained in:
@@ -110,8 +110,8 @@ impl BeobachtenStore {
|
||||
}
|
||||
|
||||
fn cleanup(inner: &mut BeobachtenInner, now: Instant, ttl: Duration) {
|
||||
inner.entries.retain(|_, entry| {
|
||||
now.saturating_duration_since(entry.last_seen) <= ttl
|
||||
});
|
||||
inner
|
||||
.entries
|
||||
.retain(|_, entry| now.saturating_duration_since(entry.last_seen) <= ttl);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user