diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-08-22 23:12:54 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-08-22 23:12:54 +0200 |
commit | 297a88845eec93f78304b5081a19b9e561652d92 (patch) | |
tree | 238027442b028b6e1091d117311cc1e601f46cc0 /tools | |
parent | 76cbcdab3fd9cc6463f15be354b9264ccdb5aa27 (diff) | |
download | feed2imap-go-297a88845eec93f78304b5081a19b9e561652d92.tar.gz feed2imap-go-297a88845eec93f78304b5081a19b9e561652d92.tar.bz2 feed2imap-go-297a88845eec93f78304b5081a19b9e561652d92.zip |
print-cache should also unlock
Diffstat (limited to '')
-rw-r--r-- | tools/print-cache/print-cache.go | 2 |
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)) |