Skip to content

Commit

Permalink
Increase delay:
Browse files Browse the repository at this point in the history
In prod delay was not visible
  • Loading branch information
jonathangiardino committed Oct 15, 2023
1 parent 03020a9 commit ab37cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/getUsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default async function getUsers() {
throw new Error("Failed to fetch users");
}

// Artificial delay of 1.5 seconds
await new Promise((resolve) => setTimeout(resolve, 1500));
// Artificial delay of 2.5 seconds
await new Promise((resolve) => setTimeout(resolve, 2500));

const result = await res.json();
const data = Object.keys(result.users).map((key) => ({
Expand Down

0 comments on commit ab37cac

Please sign in to comment.