Skip to content

Commit

Permalink
fix: timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
SnorSnor9998 committed Mar 29, 2024
1 parent 4ebee40 commit d5c60e6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repositories {
}

dependencies {
implementation("io.revenuemonster.sdk:rm-kotlin-sdk:2.1.0")
implementation("io.revenuemonster.sdk:rm-kotlin-sdk:2.1.1")
}
```
⚠ Don't forget to implement ⚠</br>
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {
group = "io.revenuemonster.sdk"
// remove prefix v if the version included, eg `v1.0.0`
//version = "(System.getenv("RM_KOTLIN_SDK_VERSION") ?: "1.0.0").removePrefix("v")"
version = "2.1.0"
version = "2.1.1"

val artifact = "rm-kotlin-sdk"
val pkgUrl = "https://github.com/RevenueMonster/rm-kotlin-sdk"
Expand Down
6 changes: 1 addition & 5 deletions src/androidMain/kotlin/io/revenuemonster/sdk/util/Helper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ actual val client: HttpClient = HttpClient(OkHttp) {
)
}

// install(HttpTimeout) {
// // Set max timeout
// requestTimeoutMillis = 95000
// socketTimeoutMillis = 60000
// }
install(HttpTimeout)

ResponseObserver {
println()
Expand Down
6 changes: 1 addition & 5 deletions src/jvmMain/kotlin/io/revenuemonster/sdk/util/client.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ actual val client: HttpClient = HttpClient(OkHttp) {
)
}

// install(HttpTimeout) {
// // Set max timeout
// requestTimeoutMillis = 95000
// socketTimeoutMillis = 60000
// }
install(HttpTimeout)

ResponseObserver {
println()
Expand Down

0 comments on commit d5c60e6

Please sign in to comment.