increased waiting time befor sending email on PDQ unavailability to 60 seconds
This commit is contained in:
@@ -215,12 +215,12 @@ func (app *App) handleAvailabilityDebounced(isAvailable bool) {
|
||||
|
||||
log.Println("PDQ reported unavailable - starting 10s debounce timer")
|
||||
|
||||
timer := time.AfterFunc(5*time.Second, func() {
|
||||
timer := time.AfterFunc(60*time.Second, func() {
|
||||
mail.SendEmailOnError(
|
||||
app.cfg.Hotel,
|
||||
app.cfg.Kiosk,
|
||||
title,
|
||||
"ChipDNA PDQ unavailable for more than 5 seconds",
|
||||
"ChipDNA PDQ unavailable for more than 60 seconds",
|
||||
)
|
||||
|
||||
app.availabilityMu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user