aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/cache.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--internal/feed/cache.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/feed/cache.go b/internal/feed/cache.go
index fa22139..bf64c4a 100644
--- a/internal/feed/cache.go
+++ b/internal/feed/cache.go
@@ -104,8 +104,12 @@ func storeCache(cache Cache, fileName string) error {
writer.Flush()
log.Printf("Stored cache to '%s'.", fileName)
+ return UnlockCache(cache)
+}
+
+func UnlockCache(cache Cache) error {
if cache.locked {
- if err = cache.lock.Unlock(); err != nil {
+ if err := cache.lock.Unlock(); err != nil {
return fmt.Errorf("Unlocking cache: %w", err)
}
}
c6f0966d9a&follow=1'>cgit v0.2v0.2Lars Hjemli1-1/+1 2007-02-05Add support for prefix and gitsrc arguments to 'make'Lars Hjemli2-15/+37 2007-02-04Update cgitrc templateLars Hjemli1-21/+32 2007-02-04Add support for lightweight tagsLars Hjemli2-19/+37 2007-02-04Read repo-info from /etc/cgitrcLars Hjemli5-55/+120 2007-02-04Do not die if tag has no messageLars Hjemli1-2/+2 2007-02-03Fix search for non-virtual urlsLars Hjemli1-0/+6 2007-01-28Update README with install/config informationLars Hjemli1-24/+28