From 4d16866b91a48f5c131359e913550ef27bc8786c Mon Sep 17 00:00:00 2001 From: NeoByteX <160131789+NeoByteXx@users.noreply.github.com> Date: Mon, 24 Feb 2025 20:54:58 +0100 Subject: [PATCH 1/2] Update file_location_cache.rs --- .../src/file_location_cache.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 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..d833256 100644 --- a/node/file_location_cache/src/file_location_cache.rs +++ b/node/file_location_cache/src/file_location_cache.rs @@ -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(); @@ -382,7 +382,7 @@ mod tests { } #[test] - fn test_annoucement_cache_pop_len() { + fn test_announcement_cache_pop_len() { let mut cache = AnnouncementCache::new(100, 3600); let now = timestamp_now(); @@ -404,7 +404,7 @@ mod tests { } #[test] - fn test_annoucement_cache_garbage_collect() { + fn test_announcement_cache_garbage_collect() { let mut cache = AnnouncementCache::new(100, 3600); let now = timestamp_now(); @@ -422,7 +422,7 @@ mod tests { } #[test] - fn test_annoucement_cache_insert_gc() { + fn test_announcement_cache_insert_gc() { let mut cache = AnnouncementCache::new(100, 3600); let now = timestamp_now(); @@ -438,7 +438,7 @@ mod tests { } #[test] - fn test_annoucement_cache_insert_ignore_older() { + fn test_announcement_cache_insert_ignore_older() { let mut cache = AnnouncementCache::new(100, 3600); let now = timestamp_now(); @@ -461,7 +461,7 @@ mod tests { } #[test] - fn test_annoucement_cache_insert_overwrite() { + fn test_announcement_cache_insert_overwrite() { let mut cache = AnnouncementCache::new(100, 3600); let now = timestamp_now(); @@ -479,7 +479,7 @@ mod tests { } #[test] - fn test_annoucement_cache_insert_cap_exceeded() { + fn test_announcement_cache_insert_cap_exceeded() { let mut cache = AnnouncementCache::new(3, 3600); let now = timestamp_now(); @@ -499,7 +499,7 @@ mod tests { } #[test] - fn test_annoucement_cache_random() { + fn test_announcement_cache_random() { let mut cache = AnnouncementCache::new(100, 3600); let now = timestamp_now(); @@ -515,7 +515,7 @@ mod tests { } #[test] - fn test_annoucement_cache_all() { + fn test_announcement_cache_all() { let mut cache = AnnouncementCache::new(100, 3600); let now = timestamp_now(); From 40092ca7fe2b56b6d73ffd528f524308fd64374f Mon Sep 17 00:00:00 2001 From: NeoByteX <160131789+NeoByteXx@users.noreply.github.com> Date: Mon, 24 Feb 2025 21:02:57 +0100 Subject: [PATCH 2/2] Update pora.rs --- node/miner/src/pora.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/miner/src/pora.rs b/node/miner/src/pora.rs index d751737..1c403eb 100644 --- a/node/miner/src/pora.rs +++ b/node/miner/src/pora.rs @@ -95,7 +95,7 @@ impl<'a> Miner<'a> { .enumerate() .zip(scratch_pad.iter().cycle()) .zip(availabilities.into_iter()) - .filter_map(|(data, availiable)| availiable.then_some(data)) + .filter_map(|(data, available)| available.then_some(data)) { inc_counter(&PAD_MIX_COUNT); // Rust can optimize this loop well.