From 1871e1c26fbcfe6f43437c8b6b017806c07f263a Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Thu, 11 Jul 2024 22:58:48 +0200 Subject: [PATCH] increase hash limit --- server/scan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/scan.go b/server/scan.go index 6af1e75..591ffa3 100644 --- a/server/scan.go +++ b/server/scan.go @@ -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)