aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2018-07-07 15:31:47 -0700
committerAdam Mathes <adam@trenchant.org>2018-07-07 15:31:47 -0700
commit858af730c2fa12c9fdb66a5111559f91352276a3 (patch)
tree3a462876b5e6c586edac79f89b47ce2bfccf3acb
parent6ef975c524056117b11bac839646aea3fd2ba6c0 (diff)
downloadneko-858af730c2fa12c9fdb66a5111559f91352276a3.tar.gz
neko-858af730c2fa12c9fdb66a5111559f91352276a3.tar.bz2
neko-858af730c2fa12c9fdb66a5111559f91352276a3.zip
close results channel
-rw-r--r--crawler/crawler.go1
1 files changed, 1 insertions, 0 deletions
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) {