mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 19:02:42 +00:00
replace instant with web-time (#5800)
* replace instant with web_time * Merge branch 'unstable' into replace-instant-gossipsub # Conflicts: # Cargo.lock # beacon_node/lighthouse_network/Cargo.toml
This commit is contained in:
@@ -21,13 +21,13 @@
|
||||
//! This implements a time-based LRU cache for checking gossipsub message duplicates.
|
||||
|
||||
use fnv::FnvHashMap;
|
||||
use instant::Instant;
|
||||
use std::collections::hash_map::{
|
||||
self,
|
||||
Entry::{Occupied, Vacant},
|
||||
};
|
||||
use std::collections::VecDeque;
|
||||
use std::time::Duration;
|
||||
use web_time::Instant;
|
||||
|
||||
struct ExpiringElement<Element> {
|
||||
/// The element that expires
|
||||
|
||||
Reference in New Issue
Block a user