event watcher enabled
This commit is contained in:
parent
a7e7a3f87d
commit
a17591e7b0
|
@ -56,9 +56,9 @@ type (
|
||||||
|
|
||||||
// New tries to use an fs-event watcher, and falls back to the poller if there is an error
|
// New tries to use an fs-event watcher, and falls back to the poller if there is an error
|
||||||
func Watcher() (FileWatcher, error) {
|
func Watcher() (FileWatcher, error) {
|
||||||
//if w, err := EventWatcher(); err == nil {
|
if w, err := EventWatcher(); err == nil {
|
||||||
// return w, nil
|
return w, nil
|
||||||
//}
|
}
|
||||||
return PollingWatcher(), nil
|
return PollingWatcher(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue