From 057b53113924aa1f0347b6db65a324b49af76551 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sat, 22 Aug 2020 23:34:31 +0200 Subject: Pretty up the cache interface; ensure feed2imap-go unlocks the cache --- internal/feed/state.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'internal/feed/state.go') diff --git a/internal/feed/state.go b/internal/feed/state.go index f2eff72..41d8751 100644 --- a/internal/feed/state.go +++ b/internal/feed/state.go @@ -63,7 +63,11 @@ func (state *State) LoadCache(fileName string, forceNew bool) error { } func (state *State) StoreCache(fileName string) error { - return storeCache(state.cache, fileName) + return state.cache.store(fileName) +} + +func (state *State) UnlockCache() { + _ = state.cache.Unlock() } func (state *State) Fetch() int { -- cgit v1.2.3-70-g09d2