Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Don't try to crawl hundreds of pages simultaneously #369

Merged
merged 5 commits into from
Feb 1, 2019
Merged

Conversation

Rich-Harris
Copy link
Member

We could maybe tweak this to make it a global queue, but this is probably fine for any realistic website

@@ -140,11 +144,13 @@ async function execute(emitter: EventEmitter, {

if (href) {
const url = new URL(href, base.href);
if (url.origin === origin) urls.push(url);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I think the urls declaration is not needed anymore in line 127

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, thanks — removed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants