🚧 Do not read from disk until files have been written
This commit is contained in:
parent
e206280de1
commit
253e22b9d6
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ 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.log('Waiting for everything to be written to disk...');
|
||||
await new Promise((resolve) => { setTimeout(resolve, 15000); });
|
||||
console.log('Done!');
|
||||
//const dvArray = bufferArray.map((buffer) => new DataView(buffer));
|
||||
|
||||
//TODO: Verify that downloaded files match the hash in `solidpkg.pieces`
|
||||
|
|
Loading…
Reference in a new issue