summaryrefslogtreecommitdiffstats
path: root/feed/feed.go
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-11-26 08:24:16 -0500
committersiddharth ravikumar <s@ricketyspace.net>2022-11-26 08:24:16 -0500
commite986bab58e6292805e56138440109774d392b5ad (patch)
tree2c1abd7fd672fa46dd79200ef86844c50ebfa975 /feed/feed.go
parent98393b87f2772109b35c08544ac545a281118d14 (diff)
feed: update `Feed.Process`
Fix handling that processes last `Feed.Last` entries.
Diffstat (limited to 'feed/feed.go')
-rw-r--r--feed/feed.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/feed/feed.go b/feed/feed.go
index 31cb142..ac48df9 100644
--- a/feed/feed.go
+++ b/feed/feed.go
@@ -155,7 +155,7 @@ func (feed *Feed) Process(pState *state.ProcessState) {
traversed += 1
// Process only `feed.Last` entries.
- if traversed >= feed.Last-1 {
+ if traversed >= feed.Last {
break
}
}