Skip to content

Commit

Permalink
fix: resolve build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vyfor committed Nov 7, 2024
1 parent 76a7f13 commit 3bce7a3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/commonMain/kotlin/io/github/vyfor/groqkt/GroqClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ import io.ktor.client.request.*
import io.ktor.client.request.forms.*
import io.ktor.client.statement.*
import io.ktor.http.*
import io.ktor.http.content.*
import io.ktor.serialization.kotlinx.json.*
import io.ktor.utils.io.*
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.IO
import kotlinx.coroutines.flow.catch
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
Expand Down Expand Up @@ -136,7 +134,7 @@ class GroqClient(
emit(Result.success(chunk))
}
}
}.flowOn(Dispatchers.IO).catch { e -> emit(Result.failure(e)) }
}.flowOn(Dispatchers.Default).catch { e -> emit(Result.failure(e)) }
)
}

Expand Down Expand Up @@ -164,7 +162,7 @@ class GroqClient(
emit(Result.success(chunk))
}
}
}.flowOn(Dispatchers.IO).catch { e -> emit(Result.failure(e)) }
}.flowOn(Dispatchers.Default).catch { e -> emit(Result.failure(e)) }
)
}

Expand Down

0 comments on commit 3bce7a3

Please sign in to comment.