aboutsummaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-17 23:45:25 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-17 23:45:25 -0600
commitf92439951351bcc964a30017ae6623130fac02cf (patch)
treebb1af8e4d1859af9043f7a74b4c4e0122d0721ed /shared
parent7e942c16f07f3fa292d6be6461243231a74827c0 (diff)
downloadetbsa-trackermap-mobile-f92439951351bcc964a30017ae6623130fac02cf.tar.gz
etbsa-trackermap-mobile-f92439951351bcc964a30017ae6623130fac02cf.tar.bz2
etbsa-trackermap-mobile-f92439951351bcc964a30017ae6623130fac02cf.zip
Set request timeout to 10 seconds
Diffstat (limited to 'shared')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/ApiClient.kt3
1 files changed, 3 insertions, 0 deletions
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<String, String> =