Skip to content

fix(web_crawler): remove redundant extract_max_priority_page call in crawl loop - #1373

Open
aoright wants to merge 1 commit into
donnemartin:masterfrom
aoright:fix/web-crawler-snippet-duplicate-page-extraction
Open

fix(web_crawler): remove redundant extract_max_priority_page call in crawl loop#1373
aoright wants to merge 1 commit into
donnemartin:masterfrom
aoright:fix/web-crawler-snippet-duplicate-page-extraction

Conversation

@aoright

@aoright aoright commented Aug 14, 2026

Copy link
Copy Markdown

Summary

  • In solutions/system_design/web_crawler/web_crawler_snippets.py, the Crawler.crawl method called self.data_store.extract_max_priority_page() at the end of the while True loop, which was immediately overwritten by the call at the top of the next iteration. This caused every alternate highest priority page to be popped from the queue and discarded without being crawled.
  • Removing the redundant call aligns the code snippet with the solution in README.md.

…crawl loop

Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
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.

1 participant