watch: Fix prototype to be more restrictive.
Change-Id: Ic744312efa91cf5c2dc2810e597353a080dccb70
This commit is contained in:
parent
ac5972aca8
commit
5e2d004af5
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue