mirror of https://github.com/grpc/grpc-go.git
				
				
				
			correct errors in documentation
This commit is contained in:
		
							parent
							
								
									63bd55dfbf
								
							
						
					
					
						commit
						b7d24ba0eb
					
				|  | @ -26,7 +26,7 @@ server.Serve(lis) | |||
| ## Google Compute Engine (GCE) | ||||
| 
 | ||||
| ```Go | ||||
| conn, err := grpc.Dial(serverAddr, grpc.WithTransportCredentials(credentials.NewClientTLSFromCert(nil, ""), grpc.WithPerRPCCredentials(oauth.NewComputeEngine()))) | ||||
| conn, err := grpc.Dial(serverAddr, grpc.WithTransportCredentials(credentials.NewClientTLSFromCert(nil, "")), grpc.WithPerRPCCredentials(oauth.NewComputeEngine())) | ||||
| ``` | ||||
| 
 | ||||
| ## JWT | ||||
|  | @ -36,6 +36,6 @@ jwtCreds, err := oauth.NewServiceAccountFromFile(*serviceAccountKeyFile, *oauthS | |||
| if err != nil { | ||||
|   log.Fatalf("Failed to create JWT credentials: %v", err) | ||||
| } | ||||
| conn, err := grpc.Dial(serverAddr, grpc.WithTransportCredentials(credentials.NewClientTLSFromCert(nil, ""), grpc.WithPerRPCCredentials(jwtCreds))) | ||||
| conn, err := grpc.Dial(serverAddr, grpc.WithTransportCredentials(credentials.NewClientTLSFromCert(nil, "")), grpc.WithPerRPCCredentials(jwtCreds)) | ||||
| ``` | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue