You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Arnaud. Hrm - from a quick look, I think you might be right... it's been a while since I've looked at this code, but it looks as though if we caused the Crawl() fn to sleep initially, so that on line:
all the go-routines adding new urls to be crawled would stall then the crawlComplete message would be processed first. I'll have to have a closer look in more detail. Let me know if you find anything first and thanks for the feedback!
Hi,
Thanks for posting your solution, it helped me a lot to figure out how-to solve the exercise with Go's channels.
I'm wondering if there is a risk of the crawler ending before all URLs have been crawled?
At https://github.com/absoludity/go-tour-exercises/blob/master/70-web-crawler.go#L68, you check if all URLs are crawled each time a crawl ends but I think it can happen that all URLs can be crawled but not all discovered.
What do you think ?
The text was updated successfully, but these errors were encountered: