Skip to content

Commit

Permalink
chore fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kawamataryo committed Feb 15, 2025
1 parent 2179289 commit ebb7b0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 25 deletions.
26 changes: 2 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/hooks/useRetrieveBskyUsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,13 @@ export const useRetrieveBskyUsers = () => {
usersData: CrawledUserInfo[],
processExtractedData: (user: CrawledUserInfo) => Promise<CrawledUserInfo>,
) => {
const promises = [];
for (const userData of usersData) {
setScannedUserCount((prev) => prev + 1);
await wait(100);
searchAndStoreBskyUser(userData, processExtractedData);
promises.push(searchAndStoreBskyUser(userData, processExtractedData));
}
await Promise.all(promises);
},
[searchAndStoreBskyUser],
);
Expand Down

0 comments on commit ebb7b0d

Please sign in to comment.