Skip to content

Commit e2638d7

Browse files
committed
cleanup mistakes/typos found in PR
1 parent 9e10451 commit e2638d7

File tree

1 file changed

+1
-3
lines changed
  • runtime/protocol/http-client-engines/http-client-engine-okhttp/jvm/src/aws/smithy/kotlin/runtime/http/engine/okhttp

1 file changed

+1
-3
lines changed

runtime/protocol/http-client-engines/http-client-engine-okhttp/jvm/src/aws/smithy/kotlin/runtime/http/engine/okhttp/ConnectionIdleMonitor.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import java.net.SocketTimeoutException
2626
import java.util.concurrent.ConcurrentHashMap
2727
import kotlin.coroutines.coroutineContext
2828
import kotlin.time.Duration
29-
import kotlin.time.Duration.Companion.seconds
3029
import kotlin.time.measureTime
3130

3231
@OptIn(ExperimentalOkHttpApi::class)
@@ -44,7 +43,6 @@ internal class ConnectionIdleMonitor(val pollInterval: Duration) : ConnectionLis
4443
// `connectionAcquired` event and will be complete before any future `connectionReleased` event could fire for
4544
// the same connection.
4645
monitors.remove(connection)?.let { monitor ->
47-
5.seconds
4846
val context = call.callContext()
4947
val logger = context.logger<ConnectionIdleMonitor>()
5048
logger.trace { "Cancel monitoring for $connection" }
@@ -94,7 +92,7 @@ internal class ConnectionIdleMonitor(val pollInterval: Duration) : ConnectionLis
9492
while (coroutineContext.isActive) {
9593
try {
9694
logger.trace { "Polling socket for $conn" }
97-
source.readByte() // Blocking read; will take up to READ_TIMEOUT_MS to complete
95+
source.readByte() // Blocking read; will take up to `pollInterval` time to complete
9896
} catch (_: SocketTimeoutException) {
9997
logger.trace { "Socket still alive for $conn" }
10098
// Socket is still alive

0 commit comments

Comments
 (0)