aboutsummaryrefslogtreecommitdiff
path: root/internal/config/parser.go
diff options
context:
space:
mode:
authorGravatar Dror Levin <dror@psybear.com> 2023-08-24 12:02:46 +0200
committerGravatar Frédéric Guillot <f@miniflux.net> 2023-08-31 20:27:09 -0700
commitbea9017b4833ee8608657feb31d650fe48183c8d (patch)
tree88ac5340ed864150b63a2082fad03c034f9e2d1d /internal/config/parser.go
parent64c4c6b34743761d0f6ea02fc4d37594781afbf4 (diff)
downloadv2-bea9017b4833ee8608657feb31d650fe48183c8d.tar.gz
v2-bea9017b4833ee8608657feb31d650fe48183c8d.tar.zst
v2-bea9017b4833ee8608657feb31d650fe48183c8d.zip
Add factor for entry_frequency scheduler
Allow the user to increase the frequency of the entry_frequency scheduler by a configurable factor in order to shorten the time between updates.
Diffstat (limited to 'internal/config/parser.go')
-rw-r--r--internal/config/parser.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/config/parser.go b/internal/config/parser.go
index c754de5c..bb43bafa 100644
--- a/internal/config/parser.go
+++ b/internal/config/parser.go
@@ -135,6 +135,8 @@ func (p *Parser) parseLines(lines []string) (err error) {
p.opts.schedulerEntryFrequencyMaxInterval = parseInt(value, defaultSchedulerEntryFrequencyMaxInterval)
case "SCHEDULER_ENTRY_FREQUENCY_MIN_INTERVAL":
p.opts.schedulerEntryFrequencyMinInterval = parseInt(value, defaultSchedulerEntryFrequencyMinInterval)
+ case "SCHEDULER_ENTRY_FREQUENCY_FACTOR":
+ p.opts.schedulerEntryFrequencyFactor = parseInt(value, defaultSchedulerEntryFrequencyFactor)
case "POLLING_PARSING_ERROR_LIMIT":
p.opts.pollingParsingErrorLimit = parseInt(value, defaultPollingParsingErrorLimit)
// kept for compatibility purpose