Skip to content

Commit

Permalink
fix: JVM runner details (#4376)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Toohey <[email protected]>
  • Loading branch information
stuartwdouglas and matt2e authored Feb 11, 2025
1 parent f5e6a93 commit 1b0379c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import io.quarkus.deployment.builditem.LaunchModeBuildItem;
import io.quarkus.deployment.builditem.RunTimeConfigBuilderBuildItem;
import io.quarkus.deployment.builditem.ServiceStartBuildItem;
import io.quarkus.deployment.builditem.ShutdownContextBuildItem;
import io.quarkus.deployment.builditem.SystemPropertyBuildItem;
import io.quarkus.deployment.pkg.builditem.OutputTargetBuildItem;
import io.quarkus.grpc.deployment.BindableServiceBuildItem;
Expand Down Expand Up @@ -153,8 +152,6 @@ public void generateSchema(CombinedIndexBuildItem index,
DefaultOptionalBuildItem defaultOptionalBuildItem,
List<SchemaContributorBuildItem> schemaContributorBuildItems,
LaunchModeBuildItem launchModeBuildItem,
ShutdownContextBuildItem shutdownContextBuildItem,
BuildProducer<SystemPropertyBuildItem> systemPropertyBuildItemBuildProducer,
CommentsBuildItem comments) throws Exception {
String moduleName = moduleNameBuildItem.getModuleName();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public class DevModeRunnerDetails implements RunnerDetails {
private volatile String proxyAddress;
private volatile String deployment;
private volatile boolean closed;
private volatile boolean loaded = false;

public DevModeRunnerDetails() {
RunnerNotification.setCallback(this::setRunnerInfo);
Expand All @@ -24,7 +23,6 @@ private void setRunnerInfo(RunnerInfo runnerInfo) {
proxyAddress = runnerInfo.address();
deployment = runnerInfo.deployment();
databases = runnerInfo.databases();
loaded = true;
notifyAll();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public static FTLController instance() {
this.moduleName = System.getProperty("ftl.module.name");
if (LaunchMode.current() != LaunchMode.DEVELOPMENT) {
haveRunnerInfo = true;
} else {
RunnerNotification.onRunnerDetails(this::devModeShutdown);
}
}
Expand Down

0 comments on commit 1b0379c

Please sign in to comment.