scanner: add scanoptions struct

This commit is contained in:
sentriz
2020-05-01 02:12:17 +01:00
parent 08e775c9dd
commit 24212af42e
5 changed files with 24 additions and 32 deletions

View File

@@ -207,7 +207,7 @@ func (s *Server) StartScanTicker(dur time.Duration) (funcExecute, funcInterrupt)
case <-done:
return nil
case <-ticker.C:
if err := s.scanner.StartInc(); err != nil {
if err := s.scanner.Start(scanner.ScanOptions{}); err != nil {
log.Printf("error scanning: %v", err)
}
}