diff --git a/gateway/service/src/main/java/org/eclipse/ditto/gateway/service/health/GatewayHttpReadinessCheck.java b/gateway/service/src/main/java/org/eclipse/ditto/gateway/service/health/GatewayHttpReadinessCheck.java index f70cbab199..57ec2b1021 100644 --- a/gateway/service/src/main/java/org/eclipse/ditto/gateway/service/health/GatewayHttpReadinessCheck.java +++ b/gateway/service/src/main/java/org/eclipse/ditto/gateway/service/health/GatewayHttpReadinessCheck.java @@ -36,7 +36,7 @@ public final class GatewayHttpReadinessCheck implements Supplier get() { return Patterns.ask(rootActor, READINESS_ASK_MESSAGE, TIMEOUT) - .handle((answer, throwable) -> answer.equals(READINESS_ASK_MESSAGE_RESPONSE)); + .handle((answer, throwable) -> READINESS_ASK_MESSAGE_RESPONSE.equals(answer)); } }