diff --git a/src/rust/lqosd/src/node_manager/shaper_queries_actor/caches.rs b/src/rust/lqosd/src/node_manager/shaper_queries_actor/caches.rs index 56a3275b..85e2ddda 100644 --- a/src/rust/lqosd/src/node_manager/shaper_queries_actor/caches.rs +++ b/src/rust/lqosd/src/node_manager/shaper_queries_actor/caches.rs @@ -45,9 +45,13 @@ impl CacheType { } } +type CacheKey = (CacheType, i32); +type CacheEntry = (Instant, Vec); +type CacheMap = HashMap; + pub struct Caches { on_update: tokio::sync::broadcast::Sender, - cache: Mutex)>>, + cache: Mutex, } impl Caches {