From 60ff245e6d965785d54a212b2a4ddd9b16159460 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sat, 25 Apr 2020 17:50:12 +0200 Subject: Remove undue feeds --- internal/feed/cache.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/feed/cache.go') diff --git a/internal/feed/cache.go b/internal/feed/cache.go index 4a0bfe7..735a7d6 100644 --- a/internal/feed/cache.go +++ b/internal/feed/cache.go @@ -6,6 +6,7 @@ import ( "errors" "fmt" "os" + "time" "github.com/Necoro/feed2imap-go/pkg/log" ) @@ -25,6 +26,7 @@ type Cache interface { type CachedFeed interface { Checked(withFailure bool) Failures() uint + Last() time.Time } func cacheForVersion(version Version) (Cache, error) { -- cgit v1.2.3-70-g09d2