Issue 98 Buffered channels to avoid lost NotifyDeleted()/NotifyTruncated()/NotifyModified() signals

This commit is contained in:
Arun Mathew 2016-08-01 15:47:06 +09:00
parent a30252cb68
commit 3ca1edc9ed
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ type FileChanges struct {
func NewFileChanges() *FileChanges { func NewFileChanges() *FileChanges {
return &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() { func (fc *FileChanges) NotifyModified() {