Restore working codebase with all methods
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user