From 9325b6e0de41e8446bb6ce66915fb0c9fe0de4f3 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/src/commonMain/kotlin/mx/trackermap') 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