Skip to content
Snippets Groups Projects
Commit eab6204a authored by ale's avatar ale
Browse files

Do not remove files from the spool on flush errors

parent 3cad0abf
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -231,6 +231,7 @@ func (s *Spool) Flush(fn func([]byte) error) error {
log.Printf("aborting scan: too many errors")
return errors.New("too many errors")
}
continue
}
os.Remove(filepath)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment