aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-08-22 23:34:31 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-08-22 23:34:31 +0200
commit057b53113924aa1f0347b6db65a324b49af76551 (patch)
tree0ba1f6d188a9ea64094c1cdefbe91d07d14b2247 /main.go
parent297a88845eec93f78304b5081a19b9e561652d92 (diff)
downloadfeed2imap-go-057b53113924aa1f0347b6db65a324b49af76551.tar.gz
feed2imap-go-057b53113924aa1f0347b6db65a324b49af76551.tar.bz2
feed2imap-go-057b53113924aa1f0347b6db65a324b49af76551.zip
Pretty up the cache interface; ensure feed2imap-go unlocks the cache
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 8d3aa15..99f104b 100644
--- a/main.go
+++ b/main.go
@@ -94,6 +94,7 @@ func run() error {
if err != nil {
return err
}
+ defer state.UnlockCache()
state.RemoveUndue()