From 6de53b631fcdb96d72639b6d2db3592d5fa8498d Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Sun, 19 Dec 2021 02:44:42 +0530 Subject: refactor: use `once_cell` instead of `lazy_static` (#13135) --- ext/tls/Cargo.toml | 2 +- ext/tls/lib.rs | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'ext/tls') diff --git a/ext/tls/Cargo.toml b/ext/tls/Cargo.toml index 2a757f62d..c3bdb5cab 100644 --- a/ext/tls/Cargo.toml +++ b/ext/tls/Cargo.toml @@ -15,7 +15,7 @@ path = "lib.rs" [dependencies] deno_core = { version = "0.111.0", path = "../../core" } -lazy_static = "1.4.0" +once_cell = "=1.9.0" rustls = { version = "0.20", features = ["dangerous_configuration"] } rustls-native-certs = "0.6.1" rustls-pemfile = "0.2.1" diff --git a/ext/tls/lib.rs b/ext/tls/lib.rs index bcaf0f1be..a6775b95d 100644 --- a/ext/tls/lib.rs +++ b/ext/tls/lib.rs @@ -89,11 +89,6 @@ pub struct BasicAuth { pub password: String, } -lazy_static::lazy_static! { - static ref CLIENT_SESSION_MEMORY_CACHE: Arc = - Arc::new(ClientSessionMemoryCache::default()); -} - #[derive(Default)] struct ClientSessionMemoryCache(Mutex, Vec>>); -- cgit v1.2.3