From a0c91b7ef003f83162b778af109a8830385dbc08 Mon Sep 17 00:00:00 2001 From: Sean Gilligan Date: Thu, 21 Sep 2023 21:28:16 -0700 Subject: [PATCH] JsonRpcClientJavaNet: call thenCompose(this::handleStatusError) drop the Async --- .../main/java/org/consensusj/jsonrpc/JsonRpcClientJavaNet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensusj-jsonrpc/src/main/java/org/consensusj/jsonrpc/JsonRpcClientJavaNet.java b/consensusj-jsonrpc/src/main/java/org/consensusj/jsonrpc/JsonRpcClientJavaNet.java index 7a700d306..3fcfd9fd9 100644 --- a/consensusj-jsonrpc/src/main/java/org/consensusj/jsonrpc/JsonRpcClientJavaNet.java +++ b/consensusj-jsonrpc/src/main/java/org/consensusj/jsonrpc/JsonRpcClientJavaNet.java @@ -84,7 +84,7 @@ private CompletableFuture 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) {