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 2, 2024
1 parent 2d19846 commit 85f0344
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
import io.vertx.core.net.PemTrustOptions;
import io.vertx.core.net.SocketAddress;
import io.vertx.grpc.client.GrpcClientChannel;
import io.vertx.grpc.client.GrpcClientOptions;

@SuppressWarnings({ "OptionalIsPresent" })
public class Channels {
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 85f0344

Please sign in to comment.