Proxy: fix gc (#6426)

## Problem

Gc currently doesn't work properly.

## Summary of changes

Change statement on running gc.
This commit is contained in:
Anna Khanova
2024-01-22 14:24:10 +01:00
committed by GitHub
parent efdb2bf948
commit 3290fb09bf

View File

@@ -266,7 +266,7 @@ impl ProjectInfoCacheImpl {
tokio::time::interval(self.config.gc_interval / (self.cache.shards().len()) as u32);
loop {
interval.tick().await;
if self.cache.len() <= self.config.size {
if self.cache.len() < self.config.size {
// If there are not too many entries, wait until the next gc cycle.
continue;
}