Skip to content

Commit

Permalink
extra spaces removed
Browse files Browse the repository at this point in the history
  • Loading branch information
sagnghos committed Jan 8, 2025
1 parent 8581186 commit 209acc4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions spanner/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,6 @@ func NewMtlsConn(endpoint, caCertificate, clientCertificate, clientCertificateKe

// Create a TLSConfig with the client certificate source.
capool, err := CertPool(caCertificate)

if err != nil {
return nil, fmt.Errorf("failed to load root CA: %w", err)
}
Expand All @@ -1448,17 +1447,13 @@ func NewMtlsConn(endpoint, caCertificate, clientCertificate, clientCertificateKe
}

creds, err := advancedtls.NewClientCreds(options)

if err != nil {
return nil, fmt.Errorf("failed to create mTLS credentials: %w", err)
}

grpcConn, err := grpc.NewClient(endpoint, grpc.WithTransportCredentials(creds))

if err != nil {
return nil, err
}

return grpcConn, nil
}

Expand Down

0 comments on commit 209acc4

Please sign in to comment.