> 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
>
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
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