From 7ce238c9c76a14ce9ff9783713e5e21f0b6c82d0 Mon Sep 17 00:00:00 2001 From: calli Date: Sat, 17 May 2025 20:28:01 +0300 Subject: [PATCH] increase batch from 5 to 50 --- src/app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index eda6f72..cac18d7 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -78,7 +78,7 @@ const Home = () => { }; const refreshSession = async (characters: AccessToken[]) => { - return processInBatches(characters, 5, async (c) => { + return processInBatches(characters, 50, async (c) => { try { return await refreshToken(c); } catch { @@ -120,7 +120,7 @@ const Home = () => { const initializeCharacterPlanets = ( characters: AccessToken[], ): Promise => - processInBatches(characters, 3, async (c) => { + processInBatches(characters, 50, async (c) => { if (c.needsLogin || c.character === undefined) return { ...c, planets: [] }; const planets = await getPlanets(c);