From f92439951351bcc964a30017ae6623130fac02cf Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Mon, 17 Jan 2022 23:45:25 -0600 Subject: Set request timeout to 10 seconds --- .../kotlin/mx/trackermap/TrackerMap/client/infrastructure/ApiClient.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shared') diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/ApiClient.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/ApiClient.kt index 4bda0ae..7d01282 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/ApiClient.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/ApiClient.kt @@ -40,6 +40,9 @@ open class ApiClient(val baseUrl: String) { logger = Logger.DEFAULT level = LogLevel.ALL } + engine { + requestTimeout = 10_000 + } } val defaultHeaders: Map = -- cgit v1.2.3