refactor: return scan context from scanner

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

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)
}
}()