Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pavetok committed Feb 18, 2024
1 parent b456f20 commit f77ec1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@

import lombok.NonNull;

public record ClientProps(
@NonNull String host,
@NonNull Integer port
) {}
public record ClientProps(@NonNull String host, @NonNull Integer port) {}
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ public RegistrationResponse register(RegistrationRequest request) {
public boolean isReady() {
URI uri = URI.create("http://" + props.host() + ":" + props.port() + "/actuator/health");
try {
var httpRequest = HttpRequest.newBuilder()
.uri(uri)
.GET()
.build();
var httpRequest = HttpRequest.newBuilder().uri(uri).GET().build();
var httpResponse = client.send(httpRequest, BodyHandlers.discarding());
return httpResponse.statusCode() == 200;
} catch (IOException | InterruptedException e) {
Expand Down

0 comments on commit f77ec1e

Please sign in to comment.