increase hash limit
All checks were successful
/ release (push) Successful in 27s

This commit is contained in:
Samuel Lorch 2024-07-11 22:58:48 +02:00
parent 81fa489417
commit 1871e1c26f

View file

@ -129,7 +129,7 @@ func manageScan(stop chan bool, scanPool *workerpool.WorkerPool, hashPool *worke
hashRunning = false
}()
rows, err := db.Query(ctx, "SELECT id FROM files WHERE status = $1 OR status = $2 LIMIT 1", constants.FILE_STATUS_CHANGED, constants.FILE_STATUS_NEW)
rows, err := db.Query(ctx, "SELECT id FROM files WHERE status = $1 OR status = $2 LIMIT 10", constants.FILE_STATUS_CHANGED, constants.FILE_STATUS_NEW)
if err != nil {
if !errors.Is(err, pgx.ErrNoRows) {
slog.ErrorContext(ctx, "Error Getting Files for Hashing", "err", err)