Skip to content

Commit

Permalink
only auto-trigger enabled servers
Browse files Browse the repository at this point in the history
  • Loading branch information
burdoto committed May 9, 2024
1 parent 061ddab commit 9594a1f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public class ServerManager {

public void startAll(List<Server> servers) {
servers.stream()
.filter(Server::isEnabled)
.map(ThrowingFunction.logging(log, srv -> get(srv.getId()).assertion("Could not initialize " + srv)))
//.flatMap(filter(Objects::nonNull, $ -> log.severe("A server was not initialized correctly")))
.map(entry -> {
Expand Down

0 comments on commit 9594a1f

Please sign in to comment.