aboutsummaryrefslogtreecommitdiff
path: root/crawler.go
diff options
context:
space:
mode:
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
}