From 260497b9bf62c74fc7f2095786d912a9a3c458a6 Mon Sep 17 00:00:00 2001 From: zerod0t Date: Thu, 13 Feb 2025 10:01:29 +0300 Subject: [PATCH] errors --- node/file_location_cache/src/file_location_cache.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/file_location_cache/src/file_location_cache.rs b/node/file_location_cache/src/file_location_cache.rs index fc81f58..cd2e560 100644 --- a/node/file_location_cache/src/file_location_cache.rs +++ b/node/file_location_cache/src/file_location_cache.rs @@ -119,7 +119,7 @@ impl AnnouncementCache { return (None, collected); } - let choosed = self + let chosen = self .items .iter() .choose(&mut rand::thread_rng()) @@ -358,7 +358,7 @@ mod tests { } #[test] - fn test_annoucement_cache_peek_priority() { + fn test_announcement_cache_peek_priority() { let mut cache = AnnouncementCache::new(100, 3600); let now = timestamp_now();