Skip to content

Commit

Permalink
fix: inconsistent custom okhttp configuration (#901)
Browse files Browse the repository at this point in the history
PR: #901
  • Loading branch information
OmarAlJarrah authored Dec 17, 2024
1 parent a0b0464 commit 26243b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ abstract class BaseRapidClient(

private val engine: HttpClientEngine = _configurationProvider.okHttpClient?.let {
OkHttp.create {
preconfigured = it
config {
preconfigured = it
dispatcher(it.dispatcher)
}
}
} ?: httpClientEngine

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ abstract class BaseXapClient(

private val engine: HttpClientEngine = _configurationProvider.okHttpClient?.let {
OkHttp.create {
preconfigured = it
config {
preconfigured = it
dispatcher(it.dispatcher)
}
}
} ?: httpClientEngine

Expand Down

0 comments on commit 26243b6

Please sign in to comment.