From 87f7b74efc82938282ce1f97604328b7ad1bbe7f Mon Sep 17 00:00:00 2001 From: Brutus5000 Date: Sat, 4 May 2024 00:28:58 +0200 Subject: [PATCH] Apply spotless --- .../com/faforever/ice/connectivitycheck/ConnectivityChecker.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kia-lib/src/main/kotlin/com/faforever/ice/connectivitycheck/ConnectivityChecker.kt b/kia-lib/src/main/kotlin/com/faforever/ice/connectivitycheck/ConnectivityChecker.kt index fb61bce..fd89cc6 100644 --- a/kia-lib/src/main/kotlin/com/faforever/ice/connectivitycheck/ConnectivityChecker.kt +++ b/kia-lib/src/main/kotlin/com/faforever/ice/connectivitycheck/ConnectivityChecker.kt @@ -9,7 +9,6 @@ import com.faforever.ice.util.ExecutorHolder import com.faforever.ice.util.ReusableComponent import io.github.oshai.kotlinlogging.KotlinLogging import java.time.Clock -import java.time.Duration import java.time.LocalDateTime import java.time.temporal.ChronoUnit import java.util.concurrent.ConcurrentHashMap @@ -81,7 +80,7 @@ class ConnectivityChecker( } ChronoUnit.SECONDS.between(connectionState.lastEchoRequested, now) > connectionEchoPendingSeconds && - ChronoUnit.SECONDS.between(connectionState.lastEchoRequested, connectionState.lastEchoReceived) < connectionEchoPendingSeconds -> ECHO_REQUIRED.also { + ChronoUnit.SECONDS.between(connectionState.lastEchoRequested, connectionState.lastEchoReceived) < connectionEchoPendingSeconds -> ECHO_REQUIRED.also { logger.trace { "[$connectivityCheckable] Echo waiting time within threshold, keep waiting" } }