From 5e2d004af5a45985c9f8fb77d2530e70586b2982 Mon Sep 17 00:00:00 2001 From: Benoit Sigoure Date: Mon, 29 Feb 2016 22:44:16 -0800 Subject: [PATCH] watch: Fix prototype to be more restrictive. Change-Id: Ic744312efa91cf5c2dc2810e597353a080dccb70 --- watch/inotify_tracker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch/inotify_tracker.go b/watch/inotify_tracker.go index 167cd02..2353ba3 100644 --- a/watch/inotify_tracker.go +++ b/watch/inotify_tracker.go @@ -133,7 +133,7 @@ func remove(winfo *watchInfo) { // Events returns a channel to which FileEvents corresponding to the input filename // will be sent. This channel will be closed when removeWatch is called on this // filename. -func Events(fname string) chan fsnotify.Event { +func Events(fname string) <-chan fsnotify.Event { shared.mux.Lock() defer shared.mux.Unlock()