Skip to content

Commit

Permalink
fix: change server sequence (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-steinfeld authored Nov 15, 2024
1 parent cc1001d commit 100e1a7
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,15 @@ protected void doInit() {
serviceContainerEnvironment))
.collect(Collectors.toUnmodifiableList());

// Servers are processed in order. We want in process to be the last to start (so health check
// only returns when all other servers are up) and the last to shut down (so all other servers
// have drained external requests)
this.servers =
Stream.concat(
providedServers.stream(),
Stream.of(
new ConstructedServer(
this.getInProcessServerName(), inProcessServerBuilder.build())),
providedServers.stream())
this.getInProcessServerName(), inProcessServerBuilder.build())))
.collect(Collectors.toUnmodifiableList());

this.healthClient =
Expand Down

0 comments on commit 100e1a7

Please sign in to comment.