From 858af730c2fa12c9fdb66a5111559f91352276a3 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sat, 7 Jul 2018 15:31:47 -0700 Subject: close results channel --- crawler/crawler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/crawler/crawler.go b/crawler/crawler.go index 66194cb..f8794d4 100644 --- a/crawler/crawler.go +++ b/crawler/crawler.go @@ -36,6 +36,7 @@ func Crawl() { for i := 0; i < len(feeds); i++ { vlog.Println(<-results) } + close(results) } func CrawlWorker(feeds <-chan *feed.Feed, results chan<- string) { -- cgit v1.2.3