Restore working codebase with all methods

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
primal
2026-02-01 19:08:53 -05:00
parent 211812363a
commit 8a9001c02c
18 changed files with 2357 additions and 331 deletions
+2 -2
View File
@@ -386,8 +386,8 @@ func parseRSSDate(s string) (time.Time, error) {
return time.Time{}, fmt.Errorf("unable to parse date: %s", s)
}
// calculateNextCrawl determines when to next crawl this feed
func (c *Crawler) calculateNextCrawl(feed *Feed) time.Time {
// calculateNextCheck determines when to next check this feed (feed_check)
func (c *Crawler) calculateNextCheck(feed *Feed) time.Time {
// Adaptive backoff: 100s base + 100s per consecutive no-change
return time.Now().Add(time.Duration(100+100*feed.NoUpdate) * time.Second)
}