From 297a88845eec93f78304b5081a19b9e561652d92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 22 Aug 2020 23:12:54 +0200 Subject: print-cache should also unlock --- tools/print-cache/print-cache.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') 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)) -- cgit v1.2.3