diff --git a/content/4-Code-explanation/4.2-detail/_index.md b/content/4-Code-explanation/4.2-detail/_index.md index 9fde3ed..26a5e6d 100644 --- a/content/4-Code-explanation/4.2-detail/_index.md +++ b/content/4-Code-explanation/4.2-detail/_index.md @@ -271,12 +271,10 @@ export class AWSS3FileReadStream extends Readable { Body.transformToByteArray() .then((chunk) => { this.chunksConcat(chunk); - if (this.chunks.byteLength >= this.highWaterMark) { - let uploadingChunk = this.chunks; - this.chunks = new Uint8Array(0); - console.log('read stream push chunk', uploadingChunk); - this.push(uploadingChunk); - } + let uploadingChunk = this.chunks; + this.chunks = new Uint8Array(0); + console.log('read stream push chunk', uploadingChunk); + this.push(uploadingChunk); }) .catch((error) => { console.log('Body.transformToByteArray() error', error);