Skip to content

Commit 1050856

Browse files
committed
fix: reassign stub after applying grpcMaxMessageSize
1 parent ce5d733 commit 1050856

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/io/weaviate/client6/v1/internal/grpc/DefaultGrpcTransport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public DefaultGrpcTransport(GrpcChannelOptions transportOptions) {
4343

4444
if (transportOptions.maxMessageSize() != null) {
4545
var max = transportOptions.maxMessageSize();
46-
blockingStub.withMaxInboundMessageSize(max).withMaxOutboundMessageSize(max);
47-
futureStub.withMaxInboundMessageSize(max).withMaxOutboundMessageSize(max);
46+
blockingStub = blockingStub.withMaxInboundMessageSize(max).withMaxOutboundMessageSize(max);
47+
futureStub = futureStub.withMaxInboundMessageSize(max).withMaxOutboundMessageSize(max);
4848
}
4949

5050
if (transportOptions.tokenProvider() != null) {

0 commit comments

Comments
 (0)