diff --git a/src/client.rs b/src/client.rs index 614c6d8..3027cc4 100644 --- a/src/client.rs +++ b/src/client.rs @@ -85,7 +85,7 @@ impl EppClient { identity: Option<(Vec>, PrivateKeyDer<'static>)>, timeout: Duration, ) -> Result { - let connector = RustlsConnector::new(server, identity).await?; + let connector = RustlsConnector::new(server, identity)?; Self::new(connector, registry, timeout).await } } @@ -234,7 +234,7 @@ mod rustls_connector { } impl RustlsConnector { - pub async fn new( + pub fn new( server: (String, u16), identity: Option<(Vec>, PrivateKeyDer<'static>)>, ) -> Result {