Skip to content

Commit 35e1020

Browse files
committed
Don't flush
1 parent 764d2cf commit 35e1020

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

runtime/runtime-core/jvm/src/aws/smithy/kotlin/runtime/content/ByteStreamJVM.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ public suspend fun ByteStream.appendToOutputStream(outputStream: OutputStream):
152152
}
153153

154154
val out = outputStream.sink().buffer()
155-
out.writeAll(src).also {
156-
out.flush()
157-
}
155+
out.writeAll(src)
158156
}
159157

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

0 commit comments

Comments
 (0)