Skip to content

Commit 1d100a6

Browse files
committed
lint
1 parent 8f32408 commit 1d100a6

File tree

1 file changed

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

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import aws.smithy.kotlin.runtime.http.config.EngineFactory
1111
import aws.smithy.kotlin.runtime.http.engine.AlpnId
1212
import aws.smithy.kotlin.runtime.http.engine.HttpClientEngine
1313
import aws.smithy.kotlin.runtime.http.engine.HttpClientEngineBase
14-
import aws.smithy.kotlin.runtime.http.engine.ProxyConfig
1514
import aws.smithy.kotlin.runtime.http.engine.TlsContext
1615
import aws.smithy.kotlin.runtime.http.engine.callContext
1716
import aws.smithy.kotlin.runtime.http.engine.internal.HttpClientMetrics
@@ -65,8 +64,8 @@ public class OkHttpEngine(
6564

6665
private val metrics = HttpClientMetrics(TELEMETRY_SCOPE, config.telemetryProvider)
6766
private val client: OkHttpClient by lazy {
68-
userProvidedClient?.withMetrics(metrics, config) ?:
69-
config.buildClient(metrics, connectionMonitoringListener)
67+
userProvidedClient?.withMetrics(metrics, config)
68+
?: config.buildClient(metrics, connectionMonitoringListener)
7069
}
7170

7271
@OptIn(ExperimentalCoroutinesApi::class)
@@ -185,9 +184,11 @@ public fun OkHttpEngineConfig.buildClient(
185184
// Configure a user-provided client to collect SDK metrics
186185
private fun OkHttpClient.withMetrics(metrics: HttpClientMetrics, config: OkHttpEngineConfig) = newBuilder().apply {
187186
eventListenerFactory { call ->
188-
EventListenerChain(listOf(
189-
HttpEngineEventListener(connectionPool, config.hostResolver, dispatcher, metrics, call),
190-
))
187+
EventListenerChain(
188+
listOf(
189+
HttpEngineEventListener(connectionPool, config.hostResolver, dispatcher, metrics, call),
190+
),
191+
)
191192
}
192193
addInterceptor(MetricsInterceptor)
193194
}.build()

0 commit comments

Comments
 (0)