refactor: remove unuse dir

This commit is contained in:
chuntaojun 2020-05-19 10:21:22 +08:00
parent f9412fd4d6
commit 610024dd07
2 changed files with 4 additions and 7 deletions

View File

@ -120,10 +120,11 @@ public class StartingSpringApplicationRunListener
ModuleInitializeReporter.class).values();
Set<String> initializingModules = reporters.stream().collect(HashSet::new, (m, v) -> m.add(v.group()), HashSet::addAll);
for ( ; ; ) {
do {
for (ModuleInitializeReporter reporter : reporters) {
if (reporter.hasException()) {
failed(context, new NacosException(NacosException.SERVER_ERROR, reporter.getError()));
failed(context, new NacosException(NacosException.SERVER_ERROR,
reporter.getError()));
return;
}
@ -135,11 +136,8 @@ public class StartingSpringApplicationRunListener
}
}
if (initializingModules.isEmpty()) {
break;
}
}
while (!initializingModules.isEmpty());
closeExecutor();

View File

@ -16,7 +16,6 @@
package com.alibaba.nacos.core.utils;
import com.alibaba.nacos.common.utils.LoggerUtils;
import com.alibaba.nacos.common.utils.Pair;
import org.slf4j.Logger;