aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/cache/v1.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/feed/cache/v1.go')
-rw-r--r--internal/feed/cache/v1.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/feed/cache/v1.go b/internal/feed/cache/v1.go
index 5675db5..1c64513 100644
--- a/internal/feed/cache/v1.go
+++ b/internal/feed/cache/v1.go
@@ -377,9 +377,9 @@ func filterItems(items []cachedItem) []cachedItem {
return copiedItems
}
-func (cache *v1Cache) cleanup(knownDescriptors map[feed.Descriptor]bool) {
+func (cache *v1Cache) cleanup(knownDescriptors map[feed.Descriptor]struct{}) {
for descr, id := range cache.Ids {
- if knownDescriptors[descr] {
+ if _, ok := knownDescriptors[descr]; ok {
// do not delete stuff still known to us
continue
}