diff --git a/Cargo.toml b/Cargo.toml index 077acb6..6121cd1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ hyper = { version = "0.14.15", features = ["client", "http1", "server", "tcp"] } hyper-rustls = { version = "0.24.0", default-features = false, features = ["http1", "logging", "tls12", "webpki-tokio"], optional = true } hyper-tls = { version = "0.5.0", optional = true } hyper-tungstenite = "0.11.1" -moka = { version = "0.11.0", features = ["future"], optional = true } +moka = { version = "0.12.0", features = ["future"], optional = true } openssl = { version = "0.10.39", optional = true } rand = { version = "0.8.0", optional = true } rcgen = { version = "0.11.0", features = ["x509-parser"], optional = true } diff --git a/src/certificate_authority/openssl_authority.rs b/src/certificate_authority/openssl_authority.rs index 33c335f..2df046b 100644 --- a/src/certificate_authority/openssl_authority.rs +++ b/src/certificate_authority/openssl_authority.rs @@ -110,7 +110,7 @@ impl OpensslAuthority { #[async_trait] impl CertificateAuthority for OpensslAuthority { async fn gen_server_config(&self, authority: &Authority) -> Arc { - if let Some(server_cfg) = self.cache.get(authority) { + if let Some(server_cfg) = self.cache.get(authority).await { debug!("Using cached server config"); return server_cfg; } diff --git a/src/certificate_authority/rcgen_authority.rs b/src/certificate_authority/rcgen_authority.rs index 5b2c3da..6f412c9 100644 --- a/src/certificate_authority/rcgen_authority.rs +++ b/src/certificate_authority/rcgen_authority.rs @@ -119,7 +119,7 @@ impl RcgenAuthority { #[async_trait] impl CertificateAuthority for RcgenAuthority { async fn gen_server_config(&self, authority: &Authority) -> Arc { - if let Some(server_cfg) = self.cache.get(authority) { + if let Some(server_cfg) = self.cache.get(authority).await { debug!("Using cached server config"); return server_cfg; }