Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Fukushima <[email protected]>
  • Loading branch information
gfukushima committed Jan 28, 2025
1 parent 9337282 commit 5415864
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
package tech.pegasys.teku.services;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import tech.pegasys.teku.infrastructure.async.SafeFuture;
Expand All @@ -44,7 +42,14 @@ protected SafeFuture<?> doStop() {
// Stop services in reverse order
final List<Service> reversedServices = new ArrayList<>(services);
reversedServices.sort((a, b) -> -1);
return SafeFuture.allOf(reversedServices.stream().map(service-> {LOG.debug("Stopping: {}",service.getClass().getName()); return service.stop();}).toArray(SafeFuture[]::new));
return SafeFuture.allOf(
reversedServices.stream()
.map(
service -> {
LOG.debug("Stopping: {}", service.getClass().getName());
return service.stop();
})
.toArray(SafeFuture[]::new));
}

@Override
Expand Down

0 comments on commit 5415864

Please sign in to comment.