File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ func main() {
8989 Certificates: []tls.Certificate {keypair},
9090 RootCAs: serverCAs,
9191 })
92- conn , err := grpc.Dial (" localhost:19111" , grpc.WithTransportCredentials (creds))
92+ conn , err := grpc.NewClient (" localhost:19111" , grpc.WithTransportCredentials (creds))
9393 if err != nil {
9494 fmt.Println (err)
9595 return
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ func run() error {
4444 return err
4545 }
4646 if ! serverCAs .AppendCertsFromPEM (serverCert ) {
47- return fmt .Errorf ("no certificates found in %s\n " , certificateFile )
47+ return fmt .Errorf ("no certificates found in %s" , certificateFile )
4848 }
4949 keypair , err := tls .LoadX509KeyPair (walletClientCertFile , walletClientKeyFile )
5050 if err != nil {
@@ -54,7 +54,7 @@ func run() error {
5454 Certificates : []tls.Certificate {keypair },
5555 RootCAs : serverCAs ,
5656 })
57- conn , err := grpc .Dial ("localhost:19111" , grpc .WithTransportCredentials (creds ))
57+ conn , err := grpc .NewClient ("localhost:19111" , grpc .WithTransportCredentials (creds ))
5858 if err != nil {
5959 return err
6060 }
You can’t perform that action at this time.
0 commit comments