added error handling
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2023-06-05 22:00:52 +02:00
parent 670f8a6f9f
commit 62ed0e030c

View File

@ -206,7 +206,10 @@ func ScanOrphan(wg *sync.WaitGroup, orphans chan IP, done chan bool, thr int, cf
log.Printf("%s -> \"%s\"\n", orphan.IP, query.Rdns) log.Printf("%s -> \"%s\"\n", orphan.IP, query.Rdns)
} }
orphan.GetOrCreate(session) _, err = orphan.GetOrCreate(session)
if err != nil {
continue
}
err = session.Commit() err = session.Commit()
if err != nil { if err != nil {