Update delay to production value
This commit is contained in:
3
main.go
3
main.go
@@ -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
|
||||||
|
Reference in New Issue
Block a user