Skip to content

Commit

Permalink
test 100ms interval
Browse files Browse the repository at this point in the history
  • Loading branch information
th0rgall committed Mar 13, 2024
1 parent 5c66204 commit a60fd5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/api/garden.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export const getAllListedGardens = async () => {
Object.assign(!existingGardens ? {} : existingGardens, newGardens)
);

// Wait 2 seconds before fetching the next chunk
await new Promise<void>((resolve) => setTimeout(() => resolve(), 2000));
// Wait 100ms seconds before fetching the next chunk
await new Promise<void>((resolve) => setTimeout(() => resolve(), 100));
} while (startAfterDoc != null && iteration < LOOP_LIMIT_ITEMS / CHUNK_SIZE);

isFetchingGardens.set(false);
Expand Down

0 comments on commit a60fd5c

Please sign in to comment.