Skip to content

Commit e2b6cf8

Browse files
committed
fix: readiness web client is not closed
1 parent 35ecdfc commit e2b6cf8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stackgres-k8s/src/cluster-controller/src/main/java/io/stackgres/cluster/rest/ControllerResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public Response liveness() {
4141
}
4242
final URI uri = URI.create("http://localhost:" + EnvoyUtil.PATRONI_PORT + "/liveness");
4343
try (var webClient = webClientFactory.create(uri)) {
44-
return webClient.get(uri);
44+
return Response.status(webClient.get(uri).getStatus()).build();
4545
} catch (Exception ex) {
4646
throw new RuntimeException(ex);
4747
}

0 commit comments

Comments
 (0)