Improve error handling by adding DISCARDED state for events
This commit is contained in:
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user