From a60fd5ccfc254d1e1857b2144a1dcb7585ab189a Mon Sep 17 00:00:00 2001 From: Thor Galle Date: Wed, 13 Mar 2024 12:46:18 +0200 Subject: [PATCH] test 100ms interval --- src/lib/api/garden.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/api/garden.ts b/src/lib/api/garden.ts index 27102bd8..2d1aaac5 100644 --- a/src/lib/api/garden.ts +++ b/src/lib/api/garden.ts @@ -80,8 +80,8 @@ export const getAllListedGardens = async () => { Object.assign(!existingGardens ? {} : existingGardens, newGardens) ); - // Wait 2 seconds before fetching the next chunk - await new Promise((resolve) => setTimeout(() => resolve(), 2000)); + // Wait 100ms seconds before fetching the next chunk + await new Promise((resolve) => setTimeout(() => resolve(), 100)); } while (startAfterDoc != null && iteration < LOOP_LIMIT_ITEMS / CHUNK_SIZE); isFetchingGardens.set(false);