Skip to content

Commit

Permalink
no need for the outer interval
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsnaps committed Apr 26, 2024
1 parent 826b8a9 commit 87f69a7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions limitador/src/storage/redis/redis_cached.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ impl CachedRedisStorage {
let counters_cache_clone = counters_cache.clone();
let conn = redis_conn_manager.clone();
let p = Arc::clone(&partitioned);
let mut interval = tokio::time::interval(flushing_period);
tokio::spawn(async move {
loop {
flush_batcher_and_update_counters(
Expand All @@ -233,7 +232,6 @@ impl CachedRedisStorage {
p.clone(),
)
.await;
interval.tick().await;
}
});
}
Expand Down

0 comments on commit 87f69a7

Please sign in to comment.