Skip to content

Commit

Permalink
Issue 98 Buffered channels to avoid lost NotifyDeleted()/NotifyTrunca…
Browse files Browse the repository at this point in the history
…ted()/NotifyModified() signals
  • Loading branch information
Arun Mathew committed Aug 1, 2016
1 parent a30252c commit 3ca1edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion watch/filechanges.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 3ca1edc

Please sign in to comment.