> 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
> out of the loop (and then close the channel).
I tried doing that. Creating different channels for each crawl call and so on,
but after some time realised I might be making a over complicated solution for
a simple problem. Using channel when there might not be a need.
Regards,
Vaibhav
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/E2024473-DF9B-461F-A8E7-D11F6EB6CB24%40gmail.com.