diff --git a/limitador/src/storage/in_memory.rs b/limitador/src/storage/in_memory.rs index a7d45e66..56f6d612 100644 --- a/limitador/src/storage/in_memory.rs +++ b/limitador/src/storage/in_memory.rs @@ -50,11 +50,11 @@ impl PartialEq for CounterKey { } } +type NamespacedLimitCounters = HashMap>>; + pub struct InMemoryStorage { - //TODO: This is a bit ugly, to address in the future - #[allow(clippy::type_complexity)] limits_for_namespace: - RwLock>>>, + RwLock>, } impl CounterStorage for InMemoryStorage {