- workerStartDelay: Configuration.getConfigurationSection<WorkerConfiguration>(
- ConfigurationSection.worker,
- ).startDelay,
- elementStartDelay: Configuration.getConfigurationSection<WorkerConfiguration>(
- ConfigurationSection.worker,
- ).elementStartDelay,
- poolMaxSize: Configuration.getConfigurationSection<WorkerConfiguration>(
- ConfigurationSection.worker,
- ).poolMaxSize!,
- poolMinSize: Configuration.getConfigurationSection<WorkerConfiguration>(
- ConfigurationSection.worker,
- ).poolMinSize!,
- elementsPerWorker:
- elementsPerWorker ??
- (Configuration.getConfigurationSection<WorkerConfiguration>(ConfigurationSection.worker)
- .elementsPerWorker as number),
+ workerStartDelay: workerConfiguration.startDelay,
+ elementStartDelay: workerConfiguration.elementStartDelay,
+ poolMaxSize: workerConfiguration.poolMaxSize!,
+ poolMinSize: workerConfiguration.poolMinSize!,
+ elementsPerWorker: elementsPerWorker ?? (workerConfiguration.elementsPerWorker as number),