aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/cache_v1.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-01 21:39:37 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-01 21:39:37 +0200
commit04a4897b69f9a10bdea27fb1133bcab71c40b687 (patch)
treedbe438199c33439d7731f9fc9e5d565ce0b6418b /internal/feed/cache_v1.go
parent9990266256b8859b3d500ff0fc0fcee6e1e64193 (diff)
downloadfeed2imap-go-04a4897b69f9a10bdea27fb1133bcab71c40b687.tar.gz
feed2imap-go-04a4897b69f9a10bdea27fb1133bcab71c40b687.tar.bz2
feed2imap-go-04a4897b69f9a10bdea27fb1133bcab71c40b687.zip
Config option 'max-failures'
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 37a4773..5f8c8f4 100644
--- a/internal/feed/cache_v1.go
+++ b/internal/feed/cache_v1.go
@@ -25,7 +25,7 @@ type v1Cache struct {
type cachedFeed struct {
LastCheck time.Time
currentCheck time.Time
- NumFailures uint // can't be named `Failures` b/c it'll collide with the interface
+ NumFailures int // can't be named `Failures` b/c it'll collide with the interface
Items []cachedItem
newItems []cachedItem
}
@@ -67,7 +67,7 @@ func (cf *cachedFeed) Commit() {
cf.LastCheck = cf.currentCheck
}
-func (cf *cachedFeed) Failures() uint {
+func (cf *cachedFeed) Failures() int {
return cf.NumFailures
}