You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
In AsynchronousFileChannel.sink, the position is not increased when sending ByteBuffer to the underlying channel:
https://github.com/zio/zio-nio/blob/series/2.x/nio/jvm/src/main/scala/zio/nio/channels/AsynchronousFileChannel.scala#L162
Between each call to
write
here the position must be advanced.writeChunk
seems to do it correctly:https://github.com/zio/zio-nio/blob/series/2.x/nio/jvm/src/main/scala/zio/nio/channels/AsynchronousFileChannel.scala#L86
The text was updated successfully, but these errors were encountered: