Skip to content

Commit

Permalink
feat(spanner): mTLS setup for spanner clients
Browse files Browse the repository at this point in the history
  • Loading branch information
sagnghos committed Jan 2, 2025
1 parent e158e0f commit d0a2612
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1627,6 +1627,7 @@ public SpannerOptions build() {
// As we are using plain text, we should never send any credentials.
this.setCredentials(NoCredentials.getInstance());
} else if (managedChannel != null) {
// Add shutdown hook for the ManagedChannel if created to prevent resource leak
Runtime.getRuntime()
.addShutdownHook(
new Thread(
Expand Down

0 comments on commit d0a2612

Please sign in to comment.