🗑 Remove debug output

This commit is contained in:
C-3PO 2018-07-08 19:15:41 +02:00
parent 82693ba3b0
commit db3b303e6c
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
3 changed files with 0 additions and 5 deletions

View file

@ -39,8 +39,6 @@ export default function saveResponse(
}
//wait until everything is written to disk, then return file name
//TODO: need to automatically delete file once it is no longer used
//TODO: need to provide methods to seek through file
writeStream.end(() => {
resolve(filePath);
});

View file

@ -32,7 +32,6 @@ export default async function getPatch(product: Product, from: number, to: numbe
//Then we need to wait for disks to finish download before we can extract individual files
//TODO: we can optimize this to already extract some files as soon as their relevant parts are downloaded
const diskFilenames = await Promise.all(diskFiles);
console.debug(diskFilenames);
//const dvArray = bufferArray.map((buffer) => new DataView(buffer));
//TODO: Verify that downloaded files match the hash in `solidpkg.pieces`

View file

@ -19,10 +19,8 @@ function waitReadableLength(inputStream: stream.Readable, minLength: number): Pr
export default async function readLocalFileHeader(inputStream: stream.Readable): Promise<number> {
let localFileHeader: Buffer = inputStream.read(30);
if (localFileHeader === null) {
console.log('Need to wait');
//need to wait until data is ready for reading
await waitReadableLength(inputStream, 30);
console.log('Ready');
localFileHeader = inputStream.read(30);
}