This commit is contained in:
parent
f9d2b7fc12
commit
194f819f6c
@ -27,6 +27,10 @@ module.exports = async (client, apex, app) => {
|
|||||||
signal: ac.signal,
|
signal: ac.signal,
|
||||||
keepalive: false,
|
keepalive: false,
|
||||||
timeout: constant.timeout,
|
timeout: constant.timeout,
|
||||||
|
cache: 'no-cache',
|
||||||
|
mode: 'same-origin',
|
||||||
|
priority: 'high',
|
||||||
|
redirect: 'follow'
|
||||||
})
|
})
|
||||||
setImmediate(() => clearTimeout(timeout))
|
setImmediate(() => clearTimeout(timeout))
|
||||||
return await response.json()
|
return await response.json()
|
||||||
@ -34,8 +38,8 @@ module.exports = async (client, apex, app) => {
|
|||||||
setImmediate(() => {
|
setImmediate(() => {
|
||||||
clearTimeout(timeout)
|
clearTimeout(timeout)
|
||||||
ac.abort()
|
ac.abort()
|
||||||
})
|
|
||||||
return
|
return
|
||||||
|
})
|
||||||
// console.error(e)
|
// console.error(e)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -117,7 +121,7 @@ module.exports = async (client, apex, app) => {
|
|||||||
app.locals.peers++
|
app.locals.peers++
|
||||||
await scanInstance(instance)
|
await scanInstance(instance)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error('Index ' + index + ':' + instance + ': ' + e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
yield 0
|
yield 0
|
||||||
|
Loading…
Reference in New Issue
Block a user