Issue 98 Buffered channels to avoid lost NotifyDeleted()/NotifyTruncated()/NotifyModified() signals
This commit is contained in:
parent
a30252cb68
commit
3ca1edc9ed
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue