aboutsummaryrefslogtreecommitdiff
path: root/shared/src
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
commit9325b6e0de41e8446bb6ce66915fb0c9fe0de4f3 (patch)
treebb1af8e4d1859af9043f7a74b4c4e0122d0721ed /shared/src
parenta33e0d509e3b716d8995f56459c92957702f83a6 (diff)
downloadetbsa-trackermap-mobile-9325b6e0de41e8446bb6ce66915fb0c9fe0de4f3.tar.gz
etbsa-trackermap-mobile-9325b6e0de41e8446bb6ce66915fb0c9fe0de4f3.tar.bz2
etbsa-trackermap-mobile-9325b6e0de41e8446bb6ce66915fb0c9fe0de4f3.zip
Set request timeout to 10 seconds
Diffstat (limited to 'shared/src')
-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> =