Skip to content

Commit

Permalink
[api] Fixes ChunkedBytesSupplier read timeout bug (#2716)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu authored Jul 15, 2023
1 parent ef1147b commit 7a1f5dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public void appendContent(byte[] data, boolean lastChunk) {
* @param lastChunk true if this is the last chunk
*/
public void appendContent(BytesSupplier bytesSupplier, boolean lastChunk) {
queue.offer(bytesSupplier);
if (lastChunk) {
completed.set(true);
}
queue.offer(bytesSupplier);
}

/**
Expand Down

0 comments on commit 7a1f5dd

Please sign in to comment.