Re: [go-nuts] My solution to Web Crawler excercise

2020-04-18 Thread Vaibhav Kaushik
> On 18-Apr-2020, at 3:46 AM, Will S <92f...@gmail.com> wrote: > >  > Your deadlock comes from the channel never being closed so the for loop in > your main go routine never ends. This makes sense. Thank you. > You need to add some logic to figure out when to close the channel, or break >

Re: [go-nuts] My solution to Web Crawler excercise

2020-04-17 Thread Will S
Your deadlock comes from the channel never being closed so the for loop in your main go routine never ends. You need to add some logic to figure out when to close the channel, or break out of the loop (and then close the channel). - Will On Fri, Apr 17, 2020 at 2:47 PM Vaibhav wrote: > Hi, > I

Re: [go-nuts] My solution to Web Crawler excercise

2020-04-17 Thread Vaibhav
Hi, I didn't want to create a new thread with same topic so though of making a reply here. I made a solution for the same problem https://play.golang.org/p/GP8qVB9FPfx without the use of lock and somehow it is working, but ends up going in the deadlock! What is going wrong here? func Crawl(roo