Skip to content

Commit

Permalink
Don't flush
Browse files Browse the repository at this point in the history
  • Loading branch information
lauzadis committed Oct 30, 2024
1 parent 764d2cf commit 35e1020
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ public suspend fun ByteStream.appendToOutputStream(outputStream: OutputStream):
}

val out = outputStream.sink().buffer()
out.writeAll(src).also {
out.flush()
}
out.writeAll(src)
}

private suspend fun OutputStream.writeAll(chan: SdkByteReadChannel): Long =
Expand Down

0 comments on commit 35e1020

Please sign in to comment.