Skip to content

Commit

Permalink
fix breaking constructor change.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpe7s committed Aug 30, 2024
1 parent 498a141 commit 172e22b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ protected JsonHttpClient(final URI endpoint,
this.applyResponse = applyResponse;
}

protected JsonHttpClient(final URI endpoint,
final HttpClient httpClient,
final Duration requestTimeout) {
this(endpoint, httpClient, requestTimeout, null);
}

public final URI endpoint() {
return this.endpoint;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ public JsonRpcHttpClient(final URI endpoint,
super(endpoint, httpClient, requestTimeout, applyResponse);
}

public JsonRpcHttpClient(final URI endpoint,
final HttpClient httpClient,
final Duration requestTimeout) {
super(endpoint, httpClient, requestTimeout, null);
}

static JsonIterator createJsonIterator(final HttpResponse<byte[]> httpResponse) {
// System.out.println(new String(httpResponse.body()));
final var ji = JsonIterator.parse(httpResponse.body());
Expand Down

0 comments on commit 172e22b

Please sign in to comment.