This commit is contained in:
parent
3d78001edf
commit
71c4299192
@ -31,15 +31,15 @@ module.exports = async (client, apex, app) => {
|
|||||||
}),
|
}),
|
||||||
signal: ac.signal,
|
signal: ac.signal,
|
||||||
keepalive: false,
|
keepalive: false,
|
||||||
timeout: 4000
|
timeout: 3000
|
||||||
}),
|
}),
|
||||||
json = await response.json()
|
json = await response.json()
|
||||||
setImmediate(() => { ac.abort() })
|
// setImmediate(() => { ac.abort() })
|
||||||
return json
|
return json
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
setImmediate(() => { ac.abort() })
|
// setImmediate(() => { ac.abort() })
|
||||||
// console.error(e)
|
// console.error(e)
|
||||||
return
|
throw e
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
scanInstance = async instance => {
|
scanInstance = async instance => {
|
||||||
@ -133,8 +133,7 @@ module.exports = async (client, apex, app) => {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
throw e
|
||||||
return
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
scanPart = async function* (instancesall, index) {
|
scanPart = async function* (instancesall, index) {
|
||||||
|
Loading…
Reference in New Issue
Block a user