hpcloud / tail

Go package for reading from continously updated files (tail -f)
MIT License
2.72k stars 505 forks source link

Lost NotifyDeleted()/NotifyTruncated()/NotifyModified() Signals #98

Open arunmathew88 opened 8 years ago

arunmathew88 commented 8 years ago

Current code misses the NotifyDeleted()/NotifyTruncated()/NotifyModified() signals if the other end of the channel is busy processing somethings else. Changing the channels [https://github.com/hpcloud/tail/blob/v1.0.0/watch/filechanges.go#L4] into buffered channel of size 1 ensures that one consolidated instance for each of these signals are retained till the other end is frees up for processing.

Possibly Fixes Issue https://github.com/hpcloud/tail/issues/94 Issue https://github.com/hpcloud/tail/issues/21