mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-04-02 22:45:41 +00:00
errors
This commit is contained in:
parent
7ad3f717b4
commit
260497b9bf
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user