Skip to content

Commit a6a9a6c

Browse files
xstefankgsmet
authored andcommitted
Correct duplicated context creation in SmallRye Health
1 parent 3e79c78 commit a6a9a6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/QuarkusAsyncHealthCheckFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ public QuarkusAsyncHealthCheckFactory(Vertx vertx) {
3232
@Override
3333
public Uni<HealthCheckResponse> callSync(HealthCheck healthCheck) {
3434
Uni<HealthCheckResponse> healthCheckResponseUni = super.callSync(healthCheck);
35+
Context duplicatedContext = VertxContext.createNewDuplicatedContext(vertx.getOrCreateContext());
3536
return healthCheckResponseUni.runSubscriptionOn(new Executor() {
3637
@Override
3738
public void execute(Runnable command) {
38-
Context duplicatedContext = VertxContext.createNewDuplicatedContext(vertx.getOrCreateContext());
3939
duplicatedContext.executeBlocking(new Callable<Void>() {
4040
@Override
4141
public Void call() throws Exception {

0 commit comments

Comments
 (0)