mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-29 10:50:30 +02:00
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:
parent
a8ed848abd
commit
654d2b4fc5
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue