🗑 Remove debug output
This commit is contained in:
parent
82693ba3b0
commit
db3b303e6c
3 changed files with 0 additions and 5 deletions
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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`
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue