From 378b95f44f90f1ae689de57378f95d72a2f72860 Mon Sep 17 00:00:00 2001 From: Alex Snaps Date: Tue, 4 Jun 2024 18:00:17 -0400 Subject: [PATCH] Small fix --- limitador/src/counter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/limitador/src/counter.rs b/limitador/src/counter.rs index ed6cd999..5f5bac49 100644 --- a/limitador/src/counter.rs +++ b/limitador/src/counter.rs @@ -62,7 +62,7 @@ impl Counter { pub fn update_to_limit(&mut self, limit: Arc) -> bool { if limit == self.limit { - self.limit = Arc::clone(&limit); + self.limit = limit; return true; } false