diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-17 23:45:25 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-17 23:45:25 -0600 |
commit | f92439951351bcc964a30017ae6623130fac02cf (patch) | |
tree | bb1af8e4d1859af9043f7a74b4c4e0122d0721ed /shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/ApiClient.kt | |
parent | 7e942c16f07f3fa292d6be6461243231a74827c0 (diff) | |
download | etbsa-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/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/ApiClient.kt')
-rw-r--r-- | shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/ApiClient.kt | 3 |
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> = |