use recursiveTree by default for recursive wathers

closes #6
This commit is contained in:
Rafal Jeczalik
2015-02-08 14:57:23 +01:00
parent 4b0535ec1c
commit e87ea9c790
+2 -4
View File
@@ -7,11 +7,9 @@ type notifier interface {
Stop(chan<- EventInfo)
}
func newNotifier(w watcher, c <-chan EventInfo) notifier {
func newNotifier(w watcher, c chan EventInfo) notifier {
if rw, ok := w.(recursiveWatcher); ok {
// return NewRecursiveTree(rw, c)
_ = rw // TODO
return newTree(w, c)
return newRecursiveTree(rw, c)
}
return newTree(w, c)
}