Update data_cache.rs

This commit is contained in:
Fallengirl 2025-02-19 10:11:48 +01:00 committed by GitHub
parent 898350e271
commit ecbf3ae4c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ impl DataCache {
/// Remove timeout data entries according to TTL.
pub fn garbage_collect(&mut self, latest_tx_seq: u64) {
// We won't keep too many data, so it's okay to just iterate here.
// We won't keep too much data, so it's okay to just iterate here.
self.root_to_data.retain(|_, cached| {
cached.last_seen_tx_seq + self.config.tx_seq_ttl as u64 >= latest_tx_seq
})