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 30, 2025
1 parent 33e2cd3 commit 1743698
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions teku/src/main/java/tech/pegasys/teku/AbstractNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,14 @@ public void stop() {
// Stop async actions
asyncRunnerFactory.shutdown();


metricsEndpoint.stop()
.orTimeout(5, TimeUnit.SECONDS);
metricsEndpoint.stop().orTimeout(5, TimeUnit.SECONDS);

// Stop services. This includes closing the database.
getServiceController().stop()
.orTimeout(30, TimeUnit.SECONDS)
.handleException(error -> LOG.error("Failed to stop services", error))
.thenRun(vertx::close)
.join();
getServiceController()
.stop()
.orTimeout(30, TimeUnit.SECONDS)
.handleException(error -> LOG.error("Failed to stop services", error))
.thenRun(vertx::close)
.join();
}
}

0 comments on commit 1743698

Please sign in to comment.