File tree 1 file changed +2
-2
lines changed
gateway/service/src/main/java/org/eclipse/ditto/gateway/service/health
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public final class GatewayHttpReadinessCheck implements Supplier<CompletionStage
36
36
*/
37
37
public static final String READINESS_ASK_MESSAGE_RESPONSE = "ready" ;
38
38
39
- private static final Duration TIMEOUT = Duration .ofSeconds (30 );
39
+ private static final Duration TIMEOUT = Duration .ofSeconds (2 );
40
40
41
41
private final ActorSelection rootActor ;
42
42
@@ -47,6 +47,6 @@ public GatewayHttpReadinessCheck(final ActorSystem system) {
47
47
@ Override
48
48
public CompletionStage <Boolean > get () {
49
49
return Patterns .ask (rootActor , READINESS_ASK_MESSAGE , TIMEOUT )
50
- .handle ((answer , throwable ) -> answer .equals (READINESS_ASK_MESSAGE_RESPONSE ));
50
+ .handle ((answer , throwable ) -> READINESS_ASK_MESSAGE_RESPONSE .equals (answer ));
51
51
}
52
52
}
You can’t perform that action at this time.
0 commit comments