Update delay to production value

This commit is contained in:
2024-08-25 21:49:14 +02:00
parent 128fdc5f85
commit 3b43378184

View File

@@ -57,8 +57,7 @@ func main() {
WatchRecursively(root, func(event fsnotify.Event) { WatchRecursively(root, func(event fsnotify.Event) {
if !queued { if !queued {
// time.AfterFunc(5*time.Minute, func() { doNotify() }) delay := 5*time.Minute
delay := 5*time.Second
log.Printf("Mailing changes in %v seconds", delay.Seconds()) log.Printf("Mailing changes in %v seconds", delay.Seconds())
time.AfterFunc(delay, func() { doNotify() }) time.AfterFunc(delay, func() { doNotify() })
queued = true queued = true