Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsnaps committed May 1, 2024
1 parent 3b5f161 commit c9e858c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion limitador/src/storage/redis/counters_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,9 @@ mod tests {
use std::collections::HashMap;

mod cache_counter_value {
use std::ops::Not;
use crate::storage::redis::counters_cache::tests::test_counter;
use crate::storage::redis::counters_cache::CachedCounterValue;
use std::ops::Not;
use std::time::{Duration, SystemTime};

#[test]
Expand Down
10 changes: 2 additions & 8 deletions limitador/src/storage/redis/redis_cached.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,7 @@ mod tests {
Duration::from_secs(60),
));
arc.delta(&counter, 1);
counters_and_deltas.insert(
counter.clone(),
arc,
);
counters_and_deltas.insert(counter.clone(), arc);

let mock_response = Value::Bulk(vec![Value::Int(10), Value::Int(60)]);

Expand Down Expand Up @@ -484,10 +481,7 @@ mod tests {
let cache = CountersCacheBuilder::new().build(Duration::from_millis(1));
cache.batcher().add(
counter.clone(),
Arc::new(CachedCounterValue::load_from_authority_asap(
&counter,
2,
)),
Arc::new(CachedCounterValue::load_from_authority_asap(&counter, 2)),
);
cache.insert(
counter.clone(),
Expand Down

0 comments on commit c9e858c

Please sign in to comment.