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