Complete CORPUS Update implementation and begin CIF update implementation

This commit is contained in:
Fred Boniface
2024-03-26 22:33:11 +00:00
parent c144a98fd1
commit 592675a24b
11 changed files with 157 additions and 49 deletions

View File

@@ -4,11 +4,12 @@ import (
"time"
"git.fjla.uk/owlboard/timetable-mgr/cif"
"git.fjla.uk/owlboard/timetable-mgr/corpus"
"git.fjla.uk/owlboard/timetable-mgr/helpers"
"git.fjla.uk/owlboard/timetable-mgr/log"
)
const frequency = 20000 * time.Millisecond // Figure out a sensible frequency!
const frequency = 3 * time.Second // Figure out a sensible frequency!
func InitTicker(cfg *helpers.Configuration, stop <-chan struct{}) {
go runTicker(cfg, stop)
@@ -24,7 +25,8 @@ func runTicker(cfg *helpers.Configuration, stop <-chan struct{}) {
case <-stop:
return
case <-ticker.C:
cif.CifCheck(cfg)
go cif.CifCheck(cfg)
go corpus.CheckCorpus(cfg)
}
}
}