add timeout for proving key fetch
Signed-off-by: AlienTornadosaurusHex <>
This commit is contained in:
parent
02f79a0de0
commit
694c93fa97
@ -55,6 +55,7 @@ async function fetchFile({ url, name, getProgress, id, retryAttempt = 0 }) {
|
|||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded'
|
'Content-Type': 'application/x-www-form-urlencoded'
|
||||||
},
|
},
|
||||||
|
timeout: 10_000,
|
||||||
onDownloadProgress: (progressEvent) => {
|
onDownloadProgress: (progressEvent) => {
|
||||||
if (typeof getProgress === 'function') {
|
if (typeof getProgress === 'function') {
|
||||||
const progress = Math.round((progressEvent.loaded * 100) / 9626311)
|
const progress = Math.round((progressEvent.loaded * 100) / 9626311)
|
||||||
|
Loading…
Reference in New Issue
Block a user