Skip to content

Commit

Permalink
Fix naming issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sven1103 committed Apr 16, 2024
1 parent bcc144a commit 9be9155
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public class RegistrationWorkersConfig {

private final Path targetDirectory;

public RegistrationWorkersConfig(int amountOfWorkers, String workingDirectory, String targetDirectory) {
if (amountOfWorkers < 1) {
throw new IllegalArgumentException("Number of workers must be greater than 0");
public RegistrationWorkersConfig(int threads, String workingDirectory, String targetDirectory) {
if (threads < 1) {
throw new IllegalArgumentException("Number of threads must be greater than 0");
}
Path directory = Paths.get(workingDirectory);
if (!directory.toFile().exists()) {
Expand All @@ -24,7 +24,7 @@ public RegistrationWorkersConfig(int amountOfWorkers, String workingDirectory, S
throw new IllegalArgumentException("Target directory " + targetDirectory + " does not exist");
}
this.workingDirectory = directory;
this.amountOfWorkers = amountOfWorkers;
this.amountOfWorkers = threads;
this.targetDirectory = targetDirectoryPath;
}

Expand Down

0 comments on commit 9be9155

Please sign in to comment.