aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/cache/v2.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2021-02-27 23:39:51 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2021-02-27 23:40:00 +0100
commitc407994dd3aeb2c5a8e5f3fa070e7436fe308fc9 (patch)
tree79adc06c0a5865badd83bfd0f515c21791d81d2b /internal/feed/cache/v2.go
parent21210173c4d04676436b8e48dfbe4043299797cb (diff)
downloadfeed2imap-go-c407994dd3aeb2c5a8e5f3fa070e7436fe308fc9.tar.gz
feed2imap-go-c407994dd3aeb2c5a8e5f3fa070e7436fe308fc9.tar.bz2
feed2imap-go-c407994dd3aeb2c5a8e5f3fa070e7436fe308fc9.zip
Remove obsolete feeds from cache after 180 days
Diffstat (limited to 'internal/feed/cache/v2.go')
-rw-r--r--internal/feed/cache/v2.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/feed/cache/v2.go b/internal/feed/cache/v2.go
index 87636b6..2abf2a8 100644
--- a/internal/feed/cache/v2.go
+++ b/internal/feed/cache/v2.go
@@ -29,6 +29,10 @@ func (cache *v2Cache) transformTo(v Version) (Impl, error) {
return nil, fmt.Errorf("Transformation not supported")
}
+func (cache *v2Cache) cleanup(knownDescriptors map[feed.Descriptor]bool) {
+ cache.asV1().cleanup(knownDescriptors)
+}
+
func (cache *v2Cache) Version() Version {
return v2Version
}