aboutsummaryrefslogtreecommitdiff
path: root/tools/print-cache
diff options
context:
space:
mode:
Diffstat (limited to 'tools/print-cache')
-rw-r--r--tools/print-cache/print-cache.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/print-cache/print-cache.go b/tools/print-cache/print-cache.go
index d20963a..b21643e 100644
--- a/tools/print-cache/print-cache.go
+++ b/tools/print-cache/print-cache.go
@@ -27,6 +27,8 @@ func main() {
log.Fatal(err)
}
+ defer func() {_ = feed.UnlockCache(cache)}()
+
fmt.Printf("Cache version %d\n", cache.Version())
if feedId != "" {
fmt.Print(cache.SpecificInfo(feedId))