aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/rjeczalik/notify/watcher_fen.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-01-02 18:41:47 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-01-02 18:41:47 +0800
commitd2533d0efbb005a826f0950bbd1cb73a82fe90fc (patch)
treeb49ba0918cb79d4e27cf1b6da048add63497f028 /vendor/github.com/rjeczalik/notify/watcher_fen.go
parent3e0113fff4b83c2d398f5d5041ef8b3052c19819 (diff)
downloaddexon-d2533d0efbb005a826f0950bbd1cb73a82fe90fc.tar.gz
dexon-d2533d0efbb005a826f0950bbd1cb73a82fe90fc.tar.zst
dexon-d2533d0efbb005a826f0950bbd1cb73a82fe90fc.zip
vendor: update github.com/rjeczalik/notify for go1.10 (#15785)
Diffstat (limited to 'vendor/github.com/rjeczalik/notify/watcher_fen.go')
-rw-r--r--vendor/github.com/rjeczalik/notify/watcher_fen.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/vendor/github.com/rjeczalik/notify/watcher_fen.go b/vendor/github.com/rjeczalik/notify/watcher_fen.go
index dd069f2a2..dfe77f2f1 100644
--- a/vendor/github.com/rjeczalik/notify/watcher_fen.go
+++ b/vendor/github.com/rjeczalik/notify/watcher_fen.go
@@ -33,14 +33,7 @@ type fen struct {
// watched is a data structure representing watched file/directory.
type watched struct {
- // p is a path to watched file/directory
- p string
- // fi provides information about watched file/dir
- fi os.FileInfo
- // eDir represents events watched directly
- eDir Event
- // eNonDir represents events watched indirectly
- eNonDir Event
+ trgWatched
}
// Stop implements trigger.
@@ -55,7 +48,7 @@ func (f *fen) Close() (err error) {
// NewWatched implements trigger.
func (*fen) NewWatched(p string, fi os.FileInfo) (*watched, error) {
- return &watched{p: p, fi: fi}, nil
+ return &watched{trgWatched{p: p, fi: fi}}, nil
}
// Record implements trigger.