Skip to content

refactor: use p-limit for blog release fetching#60

Merged
harlan-zw merged 1 commit intomainfrom
refactor/blog-releases-plimit
Apr 4, 2026
Merged

refactor: use p-limit for blog release fetching#60
harlan-zw merged 1 commit intomainfrom
refactor/blog-releases-plimit

Conversation

@oritwoen
Copy link
Copy Markdown
Collaborator

Sequential batch loop was doing fake parallelism - fetch 3, wait, fetch 3, wait. Replaced with pLimit(3) which is how rest of the codebase handles concurrent fetches (cli.ts, llms.ts, sync-parallel.ts).

Same concurrency cap, actual parallel scheduling. 5 lines shorter too - filter with type guard instead of manual push loop.

Replace sequential batch loop with p-limit concurrency control,
consistent with how the rest of the codebase handles parallel fetches.
@oritwoen oritwoen self-assigned this Mar 31, 2026
@oritwoen oritwoen requested a review from harlan-zw March 31, 2026 15:53
@harlan-zw harlan-zw merged commit d85bdb6 into main Apr 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants