Skip to content

Commit 330353e

Browse files
committed
lint
1 parent ac87eab commit 330353e

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public class OkHttpEngine(
8080

8181
private fun OkHttpEngineConfig.buildClientFromConfig(
8282
metrics: HttpClientMetrics,
83-
poolOverride: ConnectionPool? = null
83+
poolOverride: ConnectionPool? = null,
8484
): OkHttpClient {
8585
val config = this
8686

@@ -145,7 +145,7 @@ private fun OkHttpEngineConfig.buildClientFromConfig(
145145
// TODO - Refactor in next minor version - Move this to OkHttp4Engine and make it private
146146
@InternalApi
147147
public fun OkHttpEngineConfig.buildClient(
148-
metrics: HttpClientMetrics
148+
metrics: HttpClientMetrics,
149149
): OkHttpClient = this.buildClientFromConfig(metrics)
150150

151151
/**
@@ -154,15 +154,15 @@ public fun OkHttpEngineConfig.buildClient(
154154
// Used by OkHttpEngine - OkHttp5 does have `connectionListener`
155155
private fun OkHttpEngineConfig.buildClientWithConnectionListener(
156156
metrics: HttpClientMetrics,
157-
connectionListener: ConnectionIdleMonitor?
157+
connectionListener: ConnectionIdleMonitor?,
158158
): OkHttpClient = this.buildClientFromConfig(
159159
metrics,
160160
ConnectionPool(
161161
maxIdleConnections = 5, // The default from the no-arg ConnectionPool() constructor
162162
keepAliveDuration = this.connectionIdleTimeout.inWholeMilliseconds,
163163
timeUnit = TimeUnit.MILLISECONDS,
164164
connectionListener = connectionListener ?: ConnectionListener.NONE,
165-
)
165+
),
166166
)
167167

168168
private fun minTlsConnectionSpec(tlsContext: TlsContext): ConnectionSpec {

0 commit comments

Comments
 (0)