@@ -188,6 +188,7 @@ func (s *Scanner) ExecuteWatch(ctx context.Context) error {
|
|||||||
case event := <-watcher.Events:
|
case event := <-watcher.Events:
|
||||||
if event.Op&(fsnotify.Remove) == fsnotify.Remove {
|
if event.Op&(fsnotify.Remove) == fsnotify.Remove {
|
||||||
batchClean = true
|
batchClean = true
|
||||||
|
batchT.Reset(batchInterval)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if event.Op&(fsnotify.Create|fsnotify.Write) == 0 {
|
if event.Op&(fsnotify.Create|fsnotify.Write) == 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user