mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
Fix bug in ProcessingIterator where it would run the tasks in only one single thread instead of using the pool
This commit is contained in:
parent
647d38007f
commit
a1f3ccdd6d
@ -38,7 +38,7 @@ public class ProcessingIterator<T> implements Iterator<T> {
|
|||||||
|
|
||||||
private void executeJob(ProcessingJob<T> job) {
|
private void executeJob(ProcessingJob<T> job) {
|
||||||
try {
|
try {
|
||||||
job.run(this::executeTask);
|
job.run(j -> executorService.submit(() -> executeTask(j)));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.warn("Exception while processing", e);
|
logger.warn("Exception while processing", e);
|
||||||
} finally {
|
} finally {
|
||||||
|
Loading…
Reference in New Issue
Block a user