🐛 Duplex ➡ PassThrough
This commit is contained in:
parent
1c91b51686
commit
099fecce98
1 changed files with 1 additions and 1 deletions
|
@ -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.');
|
||||
|
|
Loading…
Reference in a new issue