From 2fafbedbe9d95ecc2ce278c1c1ddeb9c7844a854 Mon Sep 17 00:00:00 2001 From: dd di cesare Date: Mon, 10 Jul 2023 16:06:58 +0200 Subject: [PATCH] [refactor] Fixing storage type structure --- limitador/src/storage/in_memory.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {