diff options
author | ale <ale@incal.net> | 2015-06-29 10:24:42 +0100 |
---|---|---|
committer | ale <ale@incal.net> | 2015-06-29 10:24:42 +0100 |
commit | b06e5a296b16d0080afd36470b0ba59c7b8a5bc2 (patch) | |
tree | 34431afd15443264b45b49272c9d42ca05b1c9f4 /crawler.go | |
parent | 9fbc656c6cd2ad610986a265c6b346bc234bb881 (diff) | |
download | crawl-b06e5a296b16d0080afd36470b0ba59c7b8a5bc2.tar.gz crawl-b06e5a296b16d0080afd36470b0ba59c7b8a5bc2.zip |
clean up the state directory when done
Diffstat (limited to 'crawler.go')
-rw-r--r-- | crawler.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -319,6 +319,10 @@ func (c *Crawler) Run(concurrency int) { wg.Wait() } +func (c *Crawler) Close() { + c.db.Close() +} + type redirectHandler struct { h Handler } |