From 8de2a35e0e7cec496b166c90c5686cf5ecc867e3 Mon Sep 17 00:00:00 2001 From: Mustafa Ozhan Date: Sun, 12 Sep 2021 19:26:08 +0200 Subject: [PATCH] decrease api timeout --- .../com/github/mustafaozhan/ccc/common/di/modules/ApiModule.kt | 2 +- .../github/mustafaozhan/ccc/common/mapper/CurrencyResponse.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/commonMain/kotlin/com/github/mustafaozhan/ccc/common/di/modules/ApiModule.kt b/common/src/commonMain/kotlin/com/github/mustafaozhan/ccc/common/di/modules/ApiModule.kt index ce1e925321..250be36b72 100644 --- a/common/src/commonMain/kotlin/com/github/mustafaozhan/ccc/common/di/modules/ApiModule.kt +++ b/common/src/commonMain/kotlin/com/github/mustafaozhan/ccc/common/di/modules/ApiModule.kt @@ -15,7 +15,7 @@ import io.ktor.http.ContentType import kotlinx.serialization.json.Json import org.koin.dsl.module -private const val TIME_OUT: Long = 5000 +private const val TIME_OUT: Long = 3000 val apiModule = module { single { provideSerializer() } diff --git a/common/src/commonMain/kotlin/com/github/mustafaozhan/ccc/common/mapper/CurrencyResponse.kt b/common/src/commonMain/kotlin/com/github/mustafaozhan/ccc/common/mapper/CurrencyResponse.kt index 6e752295f8..520115b57a 100644 --- a/common/src/commonMain/kotlin/com/github/mustafaozhan/ccc/common/mapper/CurrencyResponse.kt +++ b/common/src/commonMain/kotlin/com/github/mustafaozhan/ccc/common/mapper/CurrencyResponse.kt @@ -37,4 +37,4 @@ internal fun CurrencyResponse.toOfflineRates() = OfflineRates( rates.uzs, rates.ves, rates.vnd, rates.vuv, rates.wst, rates.xaf, rates.xag, rates.xau, rates.xcd, rates.xdr, rates.xof, rates.xpd, rates.xpf, rates.xpt, rates.yer, rates.zar, rates.zmw, rates.zwl -) \ No newline at end of file +)