mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: lower concurrency on index upload (#11351)
* chore: lower concurrency on index upload * chore: increase timeout
This commit is contained in:
@@ -30,7 +30,7 @@ const client = new MeiliSearch({
|
||||
apiKey: process.env.SEARCH_API_KEY,
|
||||
});
|
||||
|
||||
const limit = pLimit(10);
|
||||
const limit = pLimit(5);
|
||||
|
||||
try {
|
||||
console.log('Generating all indices...');
|
||||
@@ -73,7 +73,7 @@ try {
|
||||
} catch {}
|
||||
|
||||
if (task) {
|
||||
await client.tasks.waitForTask(task);
|
||||
await client.tasks.waitForTask(task, { timeout: 10_000 });
|
||||
}
|
||||
|
||||
const searchIndex = client.index(index.index);
|
||||
|
||||
Reference in New Issue
Block a user