Missing handlers but there we goddamn GO
Former-commit-id: 2505146a54acaf18eadfdebf1dd2720889aef795
This commit is contained in:
@@ -2,6 +2,7 @@ package monitor
|
||||
|
||||
import (
|
||||
"local/rssmon3/config"
|
||||
"log"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -51,6 +52,8 @@ func (m *Monitor) triggered() <-chan time.Time {
|
||||
if top == nil {
|
||||
return nil
|
||||
}
|
||||
block := time.Until(top.Last().Add(top.Interval()))
|
||||
log.Printf("blocking %v until next task", block)
|
||||
return time.After(time.Until(top.Last().Add(top.Interval())))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user