diff --git a/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/rest/ResponseHandlerVoid.java b/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/rest/ResponseHandlerVoid.java index 71faa5f64b2..eeab59c4eca 100644 --- a/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/rest/ResponseHandlerVoid.java +++ b/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/rest/ResponseHandlerVoid.java @@ -15,15 +15,10 @@ import java.io.IOException; import okhttp3.Request; -import okhttp3.ResponseBody; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; import tech.pegasys.teku.ethereum.executionclient.schema.Response; import tech.pegasys.teku.infrastructure.async.SafeFuture; public class ResponseHandlerVoid extends AbstractResponseHandler { - private static final Logger LOG = LogManager.getLogger(); - final SafeFuture> futureResponse = new SafeFuture<>(); @Override @@ -36,14 +31,7 @@ void handleResponse(final Request request, final okhttp3.Response response) { if (handleResponseError(request, response, futureResponse)) { return; } - try (final ResponseBody responseBody = response.body()) { - if (!bodyIsEmpty(responseBody)) { - LOG.warn("Response body was not empty [{}]", request.url()); - } - futureResponse.complete(Response.fromNullPayload()); - } catch (final Throwable ex) { - futureResponse.completeExceptionally(ex); - } + futureResponse.complete(Response.fromNullPayload()); } public SafeFuture> getFutureResponse() {