Skip to content

Commit 3eee899

Browse files
authored
fix: drop max message size (#3987)
Drop the client-side hardcoded max message size to prevent errors if the server sends larger than expected messages.
1 parent 2849fae commit 3eee899

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,6 @@ public GapicSpannerRpc(final SpannerOptions options) {
344344
InstantiatingGrpcChannelProvider.newBuilder()
345345
.setChannelConfigurator(options.getChannelConfigurator())
346346
.setEndpoint(options.getEndpoint())
347-
.setMaxInboundMessageSize(MAX_MESSAGE_SIZE)
348-
.setMaxInboundMetadataSize(MAX_METADATA_SIZE)
349347
.setPoolSize(options.getNumChannels())
350348

351349
// Set a keepalive time of 120 seconds to help long running

0 commit comments

Comments
 (0)