1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Modify several fun notes in fsnotify.go

Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
This commit is contained in:
lixiaobing10051267 2016-07-24 13:07:35 +08:00
parent b8a08ddd69
commit ff2c898652

View file

@ -2,17 +2,17 @@ package filenotify
import "gopkg.in/fsnotify.v1" import "gopkg.in/fsnotify.v1"
// fsNotify wraps the fsnotify package to satisfy the FileNotifer interface // fsNotifyWatcher wraps the fsnotify package to satisfy the FileNotifer interface
type fsNotifyWatcher struct { type fsNotifyWatcher struct {
*fsnotify.Watcher *fsnotify.Watcher
} }
// GetEvents returns the fsnotify event channel receiver // Events returns the fsnotify event channel receiver
func (w *fsNotifyWatcher) Events() <-chan fsnotify.Event { func (w *fsNotifyWatcher) Events() <-chan fsnotify.Event {
return w.Watcher.Events return w.Watcher.Events
} }
// GetErrors returns the fsnotify error channel receiver // Errors returns the fsnotify error channel receiver
func (w *fsNotifyWatcher) Errors() <-chan error { func (w *fsNotifyWatcher) Errors() <-chan error {
return w.Watcher.Errors return w.Watcher.Errors
} }