Skip to content

Commit

Permalink
Calculate seconds correctly in ConnectivityChecker #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed May 3, 2024
1 parent 5734d7c commit fff204c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class ConnectivityChecker(
}

ChronoUnit.SECONDS.between(connectionState.lastEchoRequested, now) > connectionEchoPendingSeconds &&
Duration.between(connectionState.lastEchoRequested, connectionState.lastEchoReceived).seconds < 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" }
}

Expand Down

0 comments on commit fff204c

Please sign in to comment.