Add both rustls and openssl client tls implementation

This commit is contained in:
Lucio Franco
2019-09-01 01:37:19 -04:00
parent d43b2a3c63
commit cc2fa986a6
9 changed files with 128 additions and 62 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ pub mod hello_world {
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let origin = http::Uri::from_static("http://[::1]:50051");
let svc = Client::connect(origin)?;
let svc = Client::builder().build(origin)?;
let mut client = hello_world::GreeterClient::new(svc);
+1 -1
View File
@@ -13,7 +13,7 @@ mod route_guide {
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let origin = http::Uri::from_static("http://[::1]:10000");
let svc = Client::connect(origin)?;
let svc = Client::builder().build(origin)?;
let mut client = route_guide::RouteGuideClient::new(svc);
let start = Instant::now();