mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2026-10-25 14:20:05 -05:00
Chore: name shaper cache types
This commit is contained in:
1 parent
50a657f5c8
commit
58cbab6d5b
1 file changed
+5
-1
@@ -45,9 +45,13 @@ impl CacheType {
|
||||
}
|
||||
}
|
||||
|
||||
type CacheKey = (CacheType, i32);
|
||||
type CacheEntry = (Instant, Vec<u8>);
|
||||
type CacheMap = HashMap<CacheKey, CacheEntry>;
|
||||
|
||||
pub struct Caches {
|
||||
on_update: tokio::sync::broadcast::Sender<CacheType>,
|
||||
cache: Mutex<HashMap<(CacheType, i32), (Instant, Vec<u8>)>>,
|
||||
cache: Mutex<CacheMap>,
|
||||
}
|
||||
|
||||
impl Caches {
|
||||
|
||||
Reference in new issue
Block a user