fix oopsie
This commit is contained in:
parent
469903dc9c
commit
492e0765af
1 changed files with 2 additions and 5 deletions
7
main.go
7
main.go
|
@ -191,11 +191,8 @@ func startNotificationChecker(interval time.Duration) {
|
|||
ticker := time.NewTicker(interval)
|
||||
defer ticker.Stop()
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-ticker.C:
|
||||
checkAndSendNotifications()
|
||||
}
|
||||
for range ticker.C {
|
||||
checkAndSendNotifications()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue