Assign testdata path to correct variable (#1397)
This commit is contained in:
Родитель
e64ff5d75c
Коммит
b31f0c6036
|
@ -214,10 +214,10 @@ func main() {
|
|||
var opts []grpc.ServerOption
|
||||
if *tls {
|
||||
if *certFile == "" {
|
||||
testdata.Path("server1.pem")
|
||||
*certFile = testdata.Path("server1.pem")
|
||||
}
|
||||
if *keyFile == "" {
|
||||
testdata.Path("server1.key")
|
||||
*keyFile = testdata.Path("server1.key")
|
||||
}
|
||||
creds, err := credentials.NewServerTLSFromFile(*certFile, *keyFile)
|
||||
if err != nil {
|
||||
|
|
|
@ -48,10 +48,10 @@ func main() {
|
|||
var opts []grpc.ServerOption
|
||||
if *useTLS {
|
||||
if *certFile == "" {
|
||||
testdata.Path("server1.pem")
|
||||
*certFile = testdata.Path("server1.pem")
|
||||
}
|
||||
if *keyFile == "" {
|
||||
testdata.Path("server1.key")
|
||||
*keyFile = testdata.Path("server1.key")
|
||||
}
|
||||
creds, err := credentials.NewServerTLSFromFile(*certFile, *keyFile)
|
||||
if err != nil {
|
||||
|
|
Загрузка…
Ссылка в новой задаче