Skip to content

Commit

Permalink
[refactor] More accurate naming to the cache of counters
Browse files Browse the repository at this point in the history
  • Loading branch information
didierofrivia committed Apr 22, 2024
1 parent ae51193 commit fb7c9d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions limitador/src/storage/redis/redis_cached.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ impl CachedRedisStorage {
.ttl_ratio_cached_counter(ttl_ratio_cached_counters)
.build();

let cacher = Arc::new(cached_counters);
let cacher_clone = cacher.clone();
let counters_cache = Arc::new(cached_counters);
let counters_cache_clone = counters_cache.clone();

let partitioned = Arc::new(AtomicBool::new(false));
let async_redis_storage =
Expand All @@ -254,7 +254,7 @@ impl CachedRedisStorage {
conn.clone(),
batcher_flusher.clone(),
storage.is_alive(),
cacher_clone.clone(),
counters_cache_clone.clone(),
p.clone(),
)
.await;
Expand All @@ -264,7 +264,7 @@ impl CachedRedisStorage {
}

Ok(Self {
cached_counters: cacher,
cached_counters: counters_cache,
batcher_counter_updates: batcher,
redis_conn_manager,
async_redis_storage,
Expand Down

0 comments on commit fb7c9d4

Please sign in to comment.