refactor: update timer record calls to use Runnable type
Build & Test (NowChessSystems) TeamCity build failed

This commit is contained in:
2026-05-10 22:24:55 +02:00
parent d57c488661
commit 9459203e0d
4 changed files with 6 additions and 8 deletions
@@ -42,9 +42,7 @@ class CacheEvictionManager:
redisPrefix = prefix
def evictStaleGames: Unit =
meterRegistry.timer("nowchess.coordinator.cache.eviction.duration").record { () =>
runEviction()
}
meterRegistry.timer("nowchess.coordinator.cache.eviction.duration").record((() => runEviction()): Runnable)
private def runEviction(): Unit =
log.info("Starting cache eviction scan")