refactors psscanner

This commit is contained in:
Dominic Breuker
2018-03-02 13:59:41 +01:00
parent 26c67a6e5c
commit cff61b1102
8 changed files with 150 additions and 116 deletions

View File

@@ -27,13 +27,13 @@ type FSWatcher struct {
eventSize int
}
func NewFSWatcher() (*FSWatcher, error) {
func NewFSWatcher() *FSWatcher {
return &FSWatcher{
i: inotify.NewInotify(),
w: walker.NewWalker(),
maxWatchers: inotify.MaxWatchers,
eventSize: inotify.EventSize,
}, nil
}
}
func (fs *FSWatcher) Close() {