Skip to content

Commit 65c4674

Browse files
committed
fix(scanner): reset batch timer on fsnotify Remove events
fixes #637
1 parent e535e78 commit 65c4674

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scanner/scanner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ func (s *Scanner) ExecuteWatch(ctx context.Context) error {
188188
case event := <-watcher.Events:
189189
if event.Op&(fsnotify.Remove) == fsnotify.Remove {
190190
batchClean = true
191+
batchT.Reset(batchInterval)
191192
break
192193
}
193194
if event.Op&(fsnotify.Create|fsnotify.Write) == 0 {

0 commit comments

Comments
 (0)