Update sync.d

* Update so that the available processPool worker threads equals the number of threads set in the application configuration
This commit is contained in:
abraunegg 2024-04-27 12:30:06 +10:00
parent a8ed848abd
commit 654d2b4fc5

View file

@ -185,7 +185,8 @@ class SyncEngine {
this(ApplicationConfig appConfig, ItemDatabase itemDB, ClientSideFiltering selectiveSync) {
// Create the specific task pool to process items in parallel
this.processPool = taskPool();
this.processPool = new TaskPool(to!int(appConfig.getValueLong("threads")));
addLogEntry("PROCESS POOL WORKER THREADS: " ~ to!string(processPool.size), ["debug"]);
// Configure the class varaible to consume the application configuration
this.appConfig = appConfig;