mirror of
https://github.com/DominicBreuker/pspy.git
synced 2025-12-21 11:44:51 +00:00
refactors psscanner
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user