Skip to content

Commit

Permalink
Swith to CIO for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
gmitch215 committed Dec 26, 2024
1 parent 2f8d3aa commit 4e304a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ kotlin {
}

linuxMain.dependencies {
implementation("io.ktor:ktor-client-curl:3.0.2")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
}

jsMain.dependencies {
Expand Down
4 changes: 2 additions & 2 deletions src/linuxMain/kotlin/xyz/gmitch215/tabroom/util/http.linux.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package xyz.gmitch215.tabroom.util

import io.ktor.client.engine.*
import io.ktor.client.engine.curl.*
import io.ktor.client.engine.cio.CIO
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.IO

internal actual val engine: HttpClientEngine = Curl.create {
internal actual val engine: HttpClientEngine = CIO.create {
pipelining = true
dispatcher = Dispatchers.IO.limitedParallelism(PARALLEL_COUNT)
}

0 comments on commit 4e304a5

Please sign in to comment.