From 868446ad4d8ba33053b048dd4d82b6d4f5328f07 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 13 May 2026 15:01:30 +0100 Subject: Remove maxBatches It's not required; DB insertion occurs only in a background thread now. --- src/ingestor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ingestor.cpp') diff --git a/src/ingestor.cpp b/src/ingestor.cpp index 88bea9f..2c59866 100644 --- a/src/ingestor.cpp +++ b/src/ingestor.cpp @@ -316,8 +316,7 @@ namespace WebStat { { auto storedEnd = processingLines.begin(); try { - for (auto batch : processingLines | std::views::chunk(settings.maxBatchSize) - | std::views::take(settings.maxBatches)) { + for (auto batch : processingLines | std::views::chunk(settings.maxBatchSize)) { ingestLogLines(dbpool->get().get(), batch); storedEnd = batch.end(); } -- cgit v1.3