diff --git a/lib/fediblock.js b/lib/fediblock.js index ed0dde9..f6ddde7 100644 --- a/lib/fediblock.js +++ b/lib/fediblock.js @@ -230,7 +230,7 @@ module.exports = async (client, apex, app) => { instancessorted = instancesall.sort((a, b) => a < b ? -1 : a > b ? 1 : 0), parts = [], split = workers, - chunkSize = Math.floor(instancessorted.length / split) + chunkSize = Math.ceil(instancessorted.length / split) await scanIndex(server, instancesall) if (instancesall.length > 0) { if (!servers || servers.length === 0) {