fixed stupidity
Some checks failed
Run Integration Tests / test (push) Failing after 29s

This commit is contained in:
partisan 2024-12-27 08:09:18 +01:00
parent 8bb6fdc03d
commit 7886a3e60f

View file

@ -162,7 +162,7 @@ func (rc *ResultsCache) keyToString(key CacheKey) string {
// checkAndCleanCache removes items if memory usage exceeds the limit. // checkAndCleanCache removes items if memory usage exceeds the limit.
func (rc *ResultsCache) checkAndCleanCache() { func (rc *ResultsCache) checkAndCleanCache() {
for rc.currentMemoryUsage() > config.RamCache.MaxUsageBytes { if rc.currentMemoryUsage() > config.RamCache.MaxUsageBytes {
rc.cleanOldestItems() rc.cleanOldestItems()
} }
} }