diff options
author | Adam Mathes <adam@trenchant.org> | 2018-07-07 15:31:47 -0700 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2018-07-07 15:31:47 -0700 |
commit | 858af730c2fa12c9fdb66a5111559f91352276a3 (patch) | |
tree | 3a462876b5e6c586edac79f89b47ce2bfccf3acb /crawler | |
parent | 6ef975c524056117b11bac839646aea3fd2ba6c0 (diff) | |
download | neko-858af730c2fa12c9fdb66a5111559f91352276a3.tar.gz neko-858af730c2fa12c9fdb66a5111559f91352276a3.tar.bz2 neko-858af730c2fa12c9fdb66a5111559f91352276a3.zip |
close results channel
Diffstat (limited to 'crawler')
-rw-r--r-- | crawler/crawler.go | 1 |
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) { |