From 099fecce98a5445621d9e85d2d2f1fbb6d7dc783 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Thu, 5 Jul 2018 21:39:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Duplex=20=E2=9E=A1=20PassThrough?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/streams/getFileFromDisks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssn/streams/getFileFromDisks.ts b/src/ssn/streams/getFileFromDisks.ts index 8602456..b535bac 100644 --- a/src/ssn/streams/getFileFromDisks.ts +++ b/src/ssn/streams/getFileFromDisks.ts @@ -23,7 +23,7 @@ export default function getFileFromDisks(disks: string[], { diskStart, offset, s let totalRead = 0; //Create new stream that concatenates disks until storedSize is reached, then ends the stream. - const outputStream = new stream.Duplex({ + const outputStream = new stream.PassThrough({ /*read(num) { if (num === undefined) { throw new Error('Expected to receive number of bytes when reading from stream.');