refactor: update timer record calls to use Runnable type
Build & Test (NowChessSystems) TeamCity build failed
Build & Test (NowChessSystems) TeamCity build failed
This commit is contained in:
+1
-3
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user