Skip to content

Commit

Permalink
Respect max message size property fo Quarkus GRPC client (44853)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-pumpkin committed Dec 1, 2024
1 parent 2649fa7 commit 5065e14
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;

import io.vertx.grpc.client.GrpcClientOptions;
import jakarta.enterprise.context.spi.CreationalContext;

import org.eclipse.microprofile.context.ManagedExecutor;
Expand Down Expand Up @@ -335,7 +336,9 @@ public static Channel createChannel(String name, Set<String> perClientIntercepto
options.setMetricsName("grpc|" + name);

Vertx vertx = container.instance(Vertx.class).get();
io.vertx.grpc.client.GrpcClient client = io.vertx.grpc.client.GrpcClient.client(vertx, options);
io.vertx.grpc.client.GrpcClient client = io.vertx.grpc.client.GrpcClient.client(vertx,
new GrpcClientOptions().setTransportOptions(options)
.setMaxMessageSize(config.maxInboundMessageSize.orElse(DEFAULT_MAX_MESSAGE_SIZE)));
Channel channel;
if (stork) {
ManagedExecutor executor = container.instance(ManagedExecutor.class).get();
Expand Down

0 comments on commit 5065e14

Please sign in to comment.