Skip to content

Commit

Permalink
builder configurator properties retained when not null
Browse files Browse the repository at this point in the history
  • Loading branch information
sagnghos committed Jan 22, 2025
1 parent e10f10c commit f719fe6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,9 @@ protected SpannerOptions(Builder builder) {
if (builder.mTLSContext != null) {
channelConfigurator =
channelBuilder -> {
if (builder.channelConfigurator != null) {
channelBuilder = builder.channelConfigurator.apply(channelBuilder);
}
if (channelBuilder instanceof NettyChannelBuilder) {
((NettyChannelBuilder) channelBuilder).sslContext(builder.mTLSContext);
}
Expand Down

0 comments on commit f719fe6

Please sign in to comment.