aboutsummaryrefslogtreecommitdiff
path: root/crawler.go
diff options
context:
space:
mode:
authorale <ale@incal.net>2015-06-29 10:24:42 +0100
committerale <ale@incal.net>2015-06-29 10:24:42 +0100
commitb06e5a296b16d0080afd36470b0ba59c7b8a5bc2 (patch)
tree34431afd15443264b45b49272c9d42ca05b1c9f4 /crawler.go
parent9fbc656c6cd2ad610986a265c6b346bc234bb881 (diff)
downloadcrawl-b06e5a296b16d0080afd36470b0ba59c7b8a5bc2.tar.gz
crawl-b06e5a296b16d0080afd36470b0ba59c7b8a5bc2.zip
clean up the state directory when done
Diffstat (limited to 'crawler.go')
-rw-r--r--crawler.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawler.go b/crawler.go
index c337d97..d162330 100644
--- a/crawler.go
+++ b/crawler.go
@@ -319,6 +319,10 @@ func (c *Crawler) Run(concurrency int) {
wg.Wait()
}
+func (c *Crawler) Close() {
+ c.db.Close()
+}
+
type redirectHandler struct {
h Handler
}