From b496669ba448c3de2ba742fdc6f0a8afc9c3481c Mon Sep 17 00:00:00 2001 From: "a.usenko" Date: Wed, 16 Oct 2024 13:27:48 +0300 Subject: [PATCH] Make lambda customHttpClientConfig private Make api dump --- .../api/elasticmagic-transport-ktor.api | 4 ++-- .../evo/elasticmagic/transport/ElasticsearchKtorTransport.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/elasticmagic-transport-ktor/api/elasticmagic-transport-ktor.api b/elasticmagic-transport-ktor/api/elasticmagic-transport-ktor.api index fc2230da24..b6fcbd0c53 100644 --- a/elasticmagic-transport-ktor/api/elasticmagic-transport-ktor.api +++ b/elasticmagic-transport-ktor/api/elasticmagic-transport-ktor.api @@ -1,5 +1,5 @@ public final class dev/evo/elasticmagic/transport/ElasticsearchKtorTransport : dev/evo/elasticmagic/transport/ElasticsearchTransport { - public fun (Ljava/lang/String;Lio/ktor/client/engine/HttpClientEngine;Lkotlin/jvm/functions/Function1;)V - public synthetic fun (Ljava/lang/String;Lio/ktor/client/engine/HttpClientEngine;Lkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ljava/lang/String;Lio/ktor/client/engine/HttpClientEngine;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V + public synthetic fun (Ljava/lang/String;Lio/ktor/client/engine/HttpClientEngine;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V } diff --git a/elasticmagic-transport-ktor/src/commonMain/kotlin/dev/evo/elasticmagic/transport/ElasticsearchKtorTransport.kt b/elasticmagic-transport-ktor/src/commonMain/kotlin/dev/evo/elasticmagic/transport/ElasticsearchKtorTransport.kt index eb1fb62eed..442ebd5851 100644 --- a/elasticmagic-transport-ktor/src/commonMain/kotlin/dev/evo/elasticmagic/transport/ElasticsearchKtorTransport.kt +++ b/elasticmagic-transport-ktor/src/commonMain/kotlin/dev/evo/elasticmagic/transport/ElasticsearchKtorTransport.kt @@ -22,7 +22,7 @@ import io.ktor.http.takeFrom class ElasticsearchKtorTransport( baseUrl: String, engine: HttpClientEngine, - val customHttpClientConfig: HttpClientConfig<*>.() -> Unit = {}, + private val customHttpClientConfig: HttpClientConfig<*>.() -> Unit = {}, configure: Config.() -> Unit = {}, ) : ElasticsearchTransport( baseUrl,