From 0d6494d164cc490d62473eae0fbd79d5573bb380 Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Wed, 7 Feb 2024 23:20:55 +0100 Subject: Add retry module and change rate to requests per minute (#37) --- watch.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'watch.go') diff --git a/watch.go b/watch.go index 711f7dd..afeead4 100644 --- a/watch.go +++ b/watch.go @@ -42,16 +42,10 @@ func Watch(path string, fn func(string) error) error { for { select { - case event, ok := <-watcher.Events: + case _, ok := <-watcher.Events: if !ok { return nil } - if event.Has(fsnotify.Remove) { - continue - } - if event.Has(fsnotify.Chmod) { - continue - } watcher.Remove(path) watcher.Add(path) if err := update(); err != nil { -- cgit v1.2.3