Skip to content

Commit c28e1b9

Browse files
authored
Merge pull request quarkusio#48057 from xstefank/health-mdc-2
Correct duplicated context creation in SmallRye Health
2 parents 3e79c78 + a6a9a6c commit c28e1b9

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)