From 59733b8bf867eaa5830a508189b2ee30bea617c3 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 25 Oct 2024 09:57:37 +0200 Subject: [PATCH] Make RustlsConnector::new() sync --- src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {