Make RustlsConnector::new() sync
This commit is contained in:
parent
a1b04ddebc
commit
59733b8bf8
|
@ -85,7 +85,7 @@ impl EppClient<RustlsConnector> {
|
||||||
identity: Option<(Vec<CertificateDer<'static>>, PrivateKeyDer<'static>)>,
|
identity: Option<(Vec<CertificateDer<'static>>, PrivateKeyDer<'static>)>,
|
||||||
timeout: Duration,
|
timeout: Duration,
|
||||||
) -> Result<Self, Error> {
|
) -> Result<Self, Error> {
|
||||||
let connector = RustlsConnector::new(server, identity).await?;
|
let connector = RustlsConnector::new(server, identity)?;
|
||||||
Self::new(connector, registry, timeout).await
|
Self::new(connector, registry, timeout).await
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -234,7 +234,7 @@ mod rustls_connector {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl RustlsConnector {
|
impl RustlsConnector {
|
||||||
pub async fn new(
|
pub fn new(
|
||||||
server: (String, u16),
|
server: (String, u16),
|
||||||
identity: Option<(Vec<CertificateDer<'static>>, PrivateKeyDer<'static>)>,
|
identity: Option<(Vec<CertificateDer<'static>>, PrivateKeyDer<'static>)>,
|
||||||
) -> Result<Self, Error> {
|
) -> Result<Self, Error> {
|
||||||
|
|
Loading…
Reference in New Issue