Skip to content

Commit 5447fcf

Browse files
committed
ktlint
1 parent c63e221 commit 5447fcf

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ internal class ConnectionMonitoringEventListener(
9595
monitors[connId] = monitor
9696
}
9797

98-
9998
private suspend fun doMonitor(conn: Connection, callContext: CoroutineContext) {
10099
val logger = callContext.logger<ConnectionMonitoringEventListener>()
101100
val connId = System.identityHashCode(conn)

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ private fun OkHttpEngineConfig.buildClientFromConfig(
115115

116116
// Log events coming from okhttp. Allocate a new listener per-call to facilitate dedicated trace spans.
117117
// If connection idle polling is enabled, use ConnectionMonitoringEventListener
118-
eventListenerFactory { call ->
118+
eventListenerFactory { call ->
119119
if (config.connectionIdlePollingInterval != null) {
120120
ConnectionMonitoringEventListener(
121-
pool,
122-
config.hostResolver,
123-
dispatcher,
124-
metrics,
125-
config.connectionIdlePollingInterval!!,
126-
call
121+
pool,
122+
config.hostResolver,
123+
dispatcher,
124+
metrics,
125+
config.connectionIdlePollingInterval!!,
126+
call,
127127
)
128128
} else {
129129
HttpEngineEventListener(pool, config.hostResolver, dispatcher, metrics, call)

0 commit comments

Comments
 (0)