Small fix: removed indirection on usetls
This commit is contained in:
parent
9e8449fa5e
commit
62dd924dd4
|
|
@ -450,7 +450,7 @@ func main() {
|
|||
clientOptions.HandshakerServiceAddress = *altsHandshakerServiceAddress
|
||||
}
|
||||
creds = alts.NewClientCreds(clientOptions)
|
||||
} else if *usetls {
|
||||
} else if usetls {
|
||||
tlsConf, err := grpcurl.ClientTLSConfig(*insecure, *cacert, *cert, *key)
|
||||
if err != nil {
|
||||
fail(err, "Failed to create TLS config")
|
||||
|
|
|
|||
Loading…
Reference in New Issue