From cd43733301a602e08de3fdc05e5e3bd1b059b76d Mon Sep 17 00:00:00 2001 From: Bryant Gillespie Date: Tue, 23 Apr 2024 15:43:15 -0400 Subject: [PATCH] Add more interval (#153) --- plugins/directus.ts | 2 +- plugins/tv.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/directus.ts b/plugins/directus.ts index 54d83ff2..d5d604bd 100644 --- a/plugins/directus.ts +++ b/plugins/directus.ts @@ -5,7 +5,7 @@ import type { Schema } from '~/types/schema'; const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); -const queue = new Queue({ intervalCap: 15, interval: 500, carryoverConcurrencyCount: true }); +const queue = new Queue({ intervalCap: 10, interval: 1000, carryoverConcurrencyCount: true }); export default defineNuxtPlugin((nuxtApp) => { const route = useRoute(); diff --git a/plugins/tv.ts b/plugins/tv.ts index c148b41e..31787733 100644 --- a/plugins/tv.ts +++ b/plugins/tv.ts @@ -5,7 +5,7 @@ import type { Schema } from '~/types/schema'; const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); -const queue = new Queue({ intervalCap: 15, interval: 500, carryoverConcurrencyCount: true }); +const queue = new Queue({ intervalCap: 10, interval: 1000, carryoverConcurrencyCount: true }); export default defineNuxtPlugin((nuxtApp) => { const route = useRoute();