Complete CORPUS Update implementation and begin CIF update implementation
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user