From 3ca1edc9ed334bc382f0eea45453dde177fa4a29 Mon Sep 17 00:00:00 2001 From: Arun Mathew Date: Mon, 1 Aug 2016 15:47:06 +0900 Subject: [PATCH] Issue 98 Buffered channels to avoid lost NotifyDeleted()/NotifyTruncated()/NotifyModified() signals --- watch/filechanges.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch/filechanges.go b/watch/filechanges.go index 3ce5dce..f80aead 100644 --- a/watch/filechanges.go +++ b/watch/filechanges.go @@ -8,7 +8,7 @@ type FileChanges struct { func NewFileChanges() *FileChanges { return &FileChanges{ - make(chan bool), make(chan bool), make(chan bool)} + make(chan bool, 1), make(chan bool, 1), make(chan bool, 1)} } func (fc *FileChanges) NotifyModified() {