From 8e6f8971492290a5b14b1d5d4f820d9dfd66e9a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20J=C3=A4ckle?= Date: Tue, 12 Nov 2024 14:58:55 +0100 Subject: [PATCH] adjusted GatewayHttpReadinessCheck to work with much smaller timeout --- .../gateway/service/health/GatewayHttpReadinessCheck.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } }