Skip to content

Commit

Permalink
Remove usage of deprecated type
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Nov 19, 2024
1 parent 8627e95 commit f6f6071
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ internal fun onBodyChunkRequested(
return if (body.closedCause != null) -1 else 0
}
val readCount = try {
body.readAvailable(1) { source: Buffer ->
body.readAvailable(1) { source ->
source.readAvailable(buffer, 0, requested)
}
} catch (cause: Throwable) {
Expand Down

0 comments on commit f6f6071

Please sign in to comment.