Merge pull request #943 from jessopb/fileWaitFix

fixes swapped timeout interval values and makes ready-size more conservative
This commit is contained in:
jessopb 2019-03-01 00:34:19 -05:00 committed by GitHub
commit 665b60d03b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ const claimGet = async ({ ip, originalUrl, params }, res) => {
if (!claimData) {
throw new Error('claim/get: getClaimData failed to get file blobs');
}
const fileReady = await awaitFileSize(lbrynetResult.outpoint, 2000000, 10000, 250);
const fileReady = await awaitFileSize(lbrynetResult.outpoint, 10000000, 250, 10000);
if (fileReady !== 'ready') {
throw new Error('claim/get: failed to get file after 10 seconds');