From 057b53113924aa1f0347b6db65a324b49af76551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 22 Aug 2020 23:34:31 +0200 Subject: Pretty up the cache interface; ensure feed2imap-go unlocks the cache --- tools/print-cache/print-cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/print-cache/print-cache.go b/tools/print-cache/print-cache.go index b21643e..cdecac4 100644 --- a/tools/print-cache/print-cache.go +++ b/tools/print-cache/print-cache.go @@ -27,7 +27,7 @@ func main() { log.Fatal(err) } - defer func() {_ = feed.UnlockCache(cache)}() + defer cache.Unlock() fmt.Printf("Cache version %d\n", cache.Version()) if feedId != "" { -- cgit v1.2.3