From 77f70489e75ed3c94ee7f807c59e9caa29636a05 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Wed, 31 Jul 2024 14:48:56 -0700 Subject: [PATCH] Speed up background message migration --- ts/background.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/background.ts b/ts/background.ts index c61e934f2..de4bc2573 100644 --- a/ts/background.ts +++ b/ts/background.ts @@ -988,7 +988,7 @@ export async function startApp(): Promise { ); idleDetector.on('idle', async () => { const NUM_MESSAGES_PER_BATCH = 25; - const BATCH_DELAY = 10 * durations.SECOND; + const BATCH_DELAY = durations.SECOND / 2; if (isIdleTaskProcessing) { log.warn(