[Minor] Code cleanup
This commit is contained in:
parent
de361f7ca6
commit
8305035df7
|
@ -46,13 +46,12 @@ public class ExecutorPool {
|
||||||
for (String poolName : this.executors.keySet()) {
|
for (String poolName : this.executors.keySet()) {
|
||||||
logger.info("Shutting down executor pool " + poolName);
|
logger.info("Shutting down executor pool " + poolName);
|
||||||
ExecutorService executor = this.executors.get(poolName);
|
ExecutorService executor = this.executors.get(poolName);
|
||||||
|
|
||||||
shutdownExecutor(executor);
|
shutdownExecutor(executor);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String poolName : this.scheduledExecutors.keySet()) {
|
for (String poolName : this.scheduledExecutors.keySet()) {
|
||||||
logger.info("Shutting down scheduled executor pool " + poolName);
|
logger.info("Shutting down scheduled executor pool " + poolName);
|
||||||
ExecutorService executor = this.scheduledExecutors.get(poolName);
|
ExecutorService executor = this.scheduledExecutors.get(poolName);
|
||||||
|
|
||||||
shutdownExecutor(executor);
|
shutdownExecutor(executor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue