Small trend customisations

This commit is contained in:
DanB
2024-10-02 21:28:59 +02:00
parent 149ccc3eac
commit 28eb68241c
3 changed files with 18 additions and 7 deletions

View File

@@ -83,7 +83,7 @@ func (trs *TrendService) Start() error {
trs.Lock()
defer trs.Unlock()
trs.trs = engine.NewTrendS(dm, trs.connMgr, filterS, trs.cfg)
trs.trs.StartScheduling()
trs.trs.StartCron()
srv, err := engine.NewService(v1.NewTrendSv1(trs.trs))
if err != nil {
return err
@@ -105,7 +105,7 @@ func (tr *TrendService) Shutdown() (err error) {
defer tr.srvDep[utils.DataDB].Done()
tr.Lock()
defer tr.Unlock()
tr.trs.StopScheduling()
tr.trs.StopCron()
<-tr.connChan
return
}