fix(core): update

This commit is contained in:
2023-11-13 23:14:39 +01:00
parent 614dae5ade
commit f921338fd6
3 changed files with 4 additions and 5 deletions

View File

@@ -54,12 +54,11 @@ export function unbzip2Stream() {
let counter = 0;
return new plugins.smartstream.SmartDuplex({
objectMode: true,
// writableObjectMode: true,
name: 'bzip2',
debug: true,
// debug: true,
highWaterMark: 1,
writeFunction: async function (data, streamTools) {
console.log(`got chunk ${counter++}`)
// console.log(`got chunk ${counter++}`)
bufferQueue.push(data);
hasBytes += data.length;
if (bitReader === null) {