diff --git a/lib/fediblock.js b/lib/fediblock.js index f376361..64ac98c 100644 --- a/lib/fediblock.js +++ b/lib/fediblock.js @@ -31,15 +31,15 @@ module.exports = async (client, apex, app) => { }), signal: ac.signal, keepalive: false, - timeout: 4000 + timeout: 3000 }), json = await response.json() - setImmediate(() => { ac.abort() }) + // setImmediate(() => { ac.abort() }) return json } catch (e) { - setImmediate(() => { ac.abort() }) + // setImmediate(() => { ac.abort() }) // console.error(e) - return + throw e } }, scanInstance = async instance => { @@ -133,8 +133,7 @@ module.exports = async (client, apex, app) => { return } } catch (e) { - console.error(e) - return + throw e } }, scanPart = async function* (instancesall, index) {