From 2a4bdb24f62bb3bbceb73e9551ba70512f94c187 Mon Sep 17 00:00:00 2001 From: James Nugent Date: Fri, 18 Oct 2019 23:28:25 +0200 Subject: [PATCH] fix(transport): Rename server tls config method (#73) BREAKING CHANGE: `rustls_client_config` for the server has been renamed to `rustls_server_config`. --- tonic/src/transport/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tonic/src/transport/server.rs b/tonic/src/transport/server.rs index 1cfbc999c..74dae0055 100644 --- a/tonic/src/transport/server.rs +++ b/tonic/src/transport/server.rs @@ -286,7 +286,7 @@ impl ServerTlsConfig { /// /// This overrides all other TLS options set via other means. #[cfg(feature = "rustls")] - pub fn rustls_client_config( + pub fn rustls_server_config( &mut self, config: tokio_rustls::rustls::ServerConfig, ) -> &mut Self {