fix(transport): Remove with_rustls for tls config (#188)

This commit is contained in:
Lucio Franco
2019-12-13 20:31:22 -05:00
committed by GitHub
parent 3eb76abf9f
commit 502491a590
13 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let server = EchoServer::default();
Server::builder()
.tls_config(ServerTlsConfig::with_rustls().identity(identity))
.tls_config(ServerTlsConfig::new().identity(identity))
.add_service(pb::echo_server::EchoServer::new(server))
.serve(addr)
.await?;