Skip to content

Commit

Permalink
Merge pull request quarkusio#45529 from geoand/rest-client-is
Browse files Browse the repository at this point in the history
Remove unused context parameter in VertxClientInputStream
  • Loading branch information
gsmet authored Jan 13, 2025
2 parents bbe14b6 + c7b1aa3 commit c672a0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public void handle(AsyncResult<Void> flushed) {
//TODO: make timeout configureable
requestContext
.setResponseEntityStream(
new VertxClientInputStream(clientResponse, 100000, requestContext));
new VertxClientInputStream(clientResponse, 100000));
requestContext.resume();
} else {
clientResponse.body(new Handler<>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import java.util.ArrayDeque;
import java.util.Deque;

import org.jboss.resteasy.reactive.client.impl.RestClientRequestContext;
import org.jboss.resteasy.reactive.common.core.BlockingNotAllowedException;

import io.netty.buffer.ByteBuf;
Expand All @@ -18,27 +17,16 @@

class VertxClientInputStream extends InputStream {

public static final String MAX_REQUEST_SIZE_KEY = "io.quarkus.max-request-size";
private final VertxBlockingInput exchange;

private boolean closed;
private boolean finished;
private ByteBuf pooled;
private final RestClientRequestContext vertxResteasyReactiveRequestContext;

public VertxClientInputStream(HttpClientResponse response, long timeout,
RestClientRequestContext vertxResteasyReactiveRequestContext) {
this.vertxResteasyReactiveRequestContext = vertxResteasyReactiveRequestContext;
public VertxClientInputStream(HttpClientResponse response, long timeout) {
this.exchange = new VertxBlockingInput(response, timeout);
}

public VertxClientInputStream(HttpClientResponse request, long timeout, ByteBuf existing,
RestClientRequestContext vertxResteasyReactiveRequestContext) {
this.vertxResteasyReactiveRequestContext = vertxResteasyReactiveRequestContext;
this.exchange = new VertxBlockingInput(request, timeout);
this.pooled = existing;
}

@Override
public int read() throws IOException {
byte[] b = new byte[1];
Expand Down

0 comments on commit c672a0f

Please sign in to comment.