Skip to content

Commit 3df1c90

Browse files
committed
feat(spanner): mTLS setup for spanner clients
1 parent eae15aa commit 3df1c90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,6 +1627,7 @@ public SpannerOptions build() {
16271627
// As we are using plain text, we should never send any credentials.
16281628
this.setCredentials(NoCredentials.getInstance());
16291629
} else if (managedChannel != null) {
1630+
// Add shutdown hook for the ManagedChannel if created to prevent resource leak
16301631
Runtime.getRuntime()
16311632
.addShutdownHook(
16321633
new Thread(

0 commit comments

Comments
 (0)