Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsnaps committed Jun 4, 2024
1 parent c3a9c09 commit 378b95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion limitador/src/counter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl Counter {

pub fn update_to_limit(&mut self, limit: Arc<Limit>) -> bool {
if limit == self.limit {
self.limit = Arc::clone(&limit);
self.limit = limit;
return true;
}
false
Expand Down

0 comments on commit 378b95f

Please sign in to comment.