Skip to content

Commit

Permalink
test 1000ms
Browse files Browse the repository at this point in the history
  • Loading branch information
th0rgall committed Mar 13, 2024
1 parent a60fd5c commit ea7b343
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 100ms seconds before fetching the next chunk
await new Promise<void>((resolve) => setTimeout(() => resolve(), 100));
// Wait 1000ms seconds before fetching the next chunk
await new Promise<void>((resolve) => setTimeout(() => resolve(), 1000));
} while (startAfterDoc != null && iteration < LOOP_LIMIT_ITEMS / CHUNK_SIZE);

isFetchingGardens.set(false);
Expand Down

0 comments on commit ea7b343

Please sign in to comment.