Improve error handling by adding DISCARDED state for events

This commit is contained in:
2013-08-14 07:26:52 -04:00
parent 0c9b4cb057
commit 6bdb81834c
5 changed files with 37 additions and 27 deletions

View File

@ -47,7 +47,6 @@ func StartWatching(watchDir string, fileUpdates chan *asink.Event) {
panic("Unknown fsnotify event type")
}
event.Status = asink.NOTICED
event.Path = ev.Name
event.Timestamp = time.Now().UnixNano()