This commit is contained in:
parent
ddfd30d157
commit
2430ddcb8c
@ -19,7 +19,7 @@ module.exports = async (client, apex, app) => {
|
|||||||
requestPart = async uri => {
|
requestPart = async uri => {
|
||||||
const ac = new AbortController(),
|
const ac = new AbortController(),
|
||||||
timeout = setTimeout(() => {
|
timeout = setTimeout(() => {
|
||||||
setImmediate(ac.abort())
|
ac.abort()
|
||||||
}, constant.abort_timeout),
|
}, constant.abort_timeout),
|
||||||
response = await fetch(uri, {
|
response = await fetch(uri, {
|
||||||
headers: { 'User-Agent': constant.agent },
|
headers: { 'User-Agent': constant.agent },
|
||||||
|
Loading…
Reference in New Issue
Block a user