Small fix: removed indirection on usetls

This commit is contained in:
Jonathan Beaulieu 2023-09-25 17:19:10 +00:00
parent 9e8449fa5e
commit 62dd924dd4
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ func main() {
clientOptions.HandshakerServiceAddress = *altsHandshakerServiceAddress clientOptions.HandshakerServiceAddress = *altsHandshakerServiceAddress
} }
creds = alts.NewClientCreds(clientOptions) creds = alts.NewClientCreds(clientOptions)
} else if *usetls { } else if usetls {
tlsConf, err := grpcurl.ClientTLSConfig(*insecure, *cacert, *cert, *key) tlsConf, err := grpcurl.ClientTLSConfig(*insecure, *cacert, *cert, *key)
if err != nil { if err != nil {
fail(err, "Failed to create TLS config") fail(err, "Failed to create TLS config")