Cleanup console logs

This commit is contained in:
Jerry Kurian
2019-09-12 15:35:59 -04:00
parent 48a231d61c
commit 158475183a
2 changed files with 2 additions and 25 deletions

View File

@@ -58,21 +58,7 @@ class Demux extends Writable {
this.streamsByKey[destKey] = this.construct(destKey);
}
if (!this.streamsByKey[destKey].write(chunk, encoding)) {
console.log(
"waiting drain",
chunk,
this._writableState.length,
this.streamsByKey[destKey]._writableState.length,
this.streamsByKey[destKey]._readableState.length,
);
this.streamsByKey[destKey].once("drain", () => {
console.log(
"calling cb after drain",
chunk,
this._writableState.length,
this.streamsByKey[destKey]._writableState.length,
this.streamsByKey[destKey]._readableState.length,
);
cb();
});
} else {