Skip to content

Commit

Permalink
chore(book): fix subscription dup events
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Dec 27, 2023
1 parent fdbad5f commit 387f24a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion book/src/crawl.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const onPageEvent = (err, value) => {

const subscriptionID = website.subscribe(onPageEvent);

await website.crawl(onPageEvent);
await website.crawl();

website.unsubscribe(subscriptionID);
// this will run instantly as the crawl is in the background
Expand Down
2 changes: 1 addition & 1 deletion book/src/page.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Page

A single page on a website, useful if you just the root url.
A single page on a website, useful if you need just the root url.

## New Page

Expand Down

0 comments on commit 387f24a

Please sign in to comment.