1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-16 18:01:37 +00:00

Add config options to disable HTTP and scheduler services

This commit is contained in:
Frédéric Guillot 2018-11-11 15:54:19 -08:00
parent 487852f07e
commit becd086865
5 changed files with 80 additions and 3 deletions

View file

@ -15,6 +15,7 @@ import (
// Serve starts the internal scheduler.
func Serve(cfg *config.Config, store *storage.Storage, pool *worker.Pool) {
logger.Info(`Starting scheduler...`)
go feedScheduler(store, pool, cfg.PollingFrequency(), cfg.BatchSize())
go cleanupScheduler(store, cfg.CleanupFrequency())
}