Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SbloodyS committed Dec 9, 2024
1 parent 399771e commit 0f05c50
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,6 @@ public class WorkerConfig implements Validator {

private PhysicalTaskConfig physicalTaskConfig = new PhysicalTaskConfig();

public String getGroup() {
if (StringUtils.isEmpty(group)) {
return "default";
}
return group;
}

@Override
public boolean supports(Class<?> clazz) {
return WorkerConfig.class.isAssignableFrom(clazz);
Expand All @@ -80,6 +73,11 @@ public void validate(Object target, Errors errors) {

workerConfig.setWorkerRegistryPath(
RegistryNodeType.WORKER.getRegistryPath() + "/" + workerConfig.getWorkerAddress());

if (StringUtils.isEmpty(group)) {
workerConfig.setGroup("default");
}

printConfig();
}

Expand Down

0 comments on commit 0f05c50

Please sign in to comment.