watch: Fix prototype to be more restrictive.
Change-Id: Ic744312efa91cf5c2dc2810e597353a080dccb70
This commit is contained in:
parent
d5f9e6c087
commit
6c6f39c586
|
@ -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