Browse Source

Update RotateFeeds job to @hourly and set DefaultMaxFeedSize to 512KB

pull/21/head
James Mills 7 months ago
parent
commit
3146f2818b
Signed by: prologic
GPG Key ID: AC4C014F1440EBD6
  1. 2
      jobs.go
  2. 2
      options.go

2
jobs.go

@ -29,7 +29,7 @@ var (
func init() {
Jobs = map[string]JobSpec{
"RotateFeeds": NewJobSpec("@daily", NewRotateFeedsJob),
"RotateFeeds": NewJobSpec("@hourly", NewRotateFeedsJob),
"UpdateFeeds": NewJobSpec("@every 5m", NewUpdateFeedsJob),
"TikTokBot": NewJobSpec("0 0,30 * * * *", NewTikTokJob),
}

2
options.go

@ -22,7 +22,7 @@ const (
DefaultFeedsFile = "feeds.yaml"
// DefaultMaxFeedSize is the default maximum feed size before rotation
DefaultMaxFeedSize = 1 << 20 // ~1MB
DefaultMaxFeedSize = 1 << 19 // ~512KB
)
func NewConfig() *Config {

Loading…
Cancel
Save