fix(analysis): bound concurrent OCR inferences with a shared semaphore

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
MechaCat02
2026-07-01 07:14:19 +02:00
parent 66ae4b221b
commit 5b76e0cc37
6 changed files with 54 additions and 4 deletions

View File

@@ -56,6 +56,7 @@ fn ocr_dispatcher(
storage,
engine: StubOcrEngine::new(lines),
max_image_bytes: 8 * 1024 * 1024,
ocr_permits: Arc::new(tokio::sync::Semaphore::new(1)),
}
}