Skip to content

Commit f719fe6

Browse files
committed
builder configurator properties retained when not null
1 parent e10f10c commit f719fe6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerOptions.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,9 @@ protected SpannerOptions(Builder builder) {
744744
if (builder.mTLSContext != null) {
745745
channelConfigurator =
746746
channelBuilder -> {
747+
if (builder.channelConfigurator != null) {
748+
channelBuilder = builder.channelConfigurator.apply(channelBuilder);
749+
}
747750
if (channelBuilder instanceof NettyChannelBuilder) {
748751
((NettyChannelBuilder) channelBuilder).sslContext(builder.mTLSContext);
749752
}

0 commit comments

Comments
 (0)