Skip to content

Commit aabd5fc

Browse files
committed
chore: re-add message size limits
1 parent f1c6978 commit aabd5fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ 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)
347349
.setPoolSize(options.getNumChannels())
348350

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

0 commit comments

Comments
 (0)