Skip to content

Commit

Permalink
JsonRpcClientJavaNet: call thenCompose(this::handleStatusError) drop …
Browse files Browse the repository at this point in the history
…the Async
  • Loading branch information
msgilligan committed Sep 22, 2023
1 parent 88c46cf commit a0c91b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private CompletableFuture<String> sendCommon(JsonRpcRequest request) {
HttpRequest httpRequest = buildJsonRpcPostRequest(request);
return client.sendAsync(httpRequest, HttpResponse.BodyHandlers.ofString())
.whenComplete(this::log)
.thenComposeAsync(this::handleStatusError)
.thenCompose(this::handleStatusError)
.thenApply(HttpResponse::body)
.whenComplete(this::log);
} catch (JsonProcessingException e) {
Expand Down

0 comments on commit a0c91b7

Please sign in to comment.