This commit is contained in:
zerod0t 2025-02-13 10:01:29 +03:00
parent 7ad3f717b4
commit 260497b9bf
No known key found for this signature in database
GPG Key ID: 2240FA0D40D316F4

View File

@ -119,7 +119,7 @@ impl AnnouncementCache {
return (None, collected); return (None, collected);
} }
let choosed = self let chosen = self
.items .items
.iter() .iter()
.choose(&mut rand::thread_rng()) .choose(&mut rand::thread_rng())
@ -358,7 +358,7 @@ mod tests {
} }
#[test] #[test]
fn test_annoucement_cache_peek_priority() { fn test_announcement_cache_peek_priority() {
let mut cache = AnnouncementCache::new(100, 3600); let mut cache = AnnouncementCache::new(100, 3600);
let now = timestamp_now(); let now = timestamp_now();