refactor: return scan context from scanner

This commit is contained in:
sentriz
2022-02-24 19:15:37 +00:00
committed by Senan Kelly
parent b0d5861d10
commit 10e8d18a0f
5 changed files with 110 additions and 104 deletions

No files matched your search

+1 -1
View File
@@ -291,7 +291,7 @@ func (s *Server) StartScanTicker(dur time.Duration) (FuncExecute, FuncInterrupt)
return nil
case <-ticker.C:
go func() {
if err := s.scanner.ScanAndClean(scanner.ScanOptions{}); err != nil {
if _, err := s.scanner.ScanAndClean(scanner.ScanOptions{}); err != nil {
log.Printf("error scanning: %v", err)
}
}()