diff options
Diffstat (limited to 'ext/tls')
-rw-r--r-- | ext/tls/tls_key.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/tls/tls_key.rs b/ext/tls/tls_key.rs index 18064a91a..66fea3a69 100644 --- a/ext/tls/tls_key.rs +++ b/ext/tls/tls_key.rs @@ -50,6 +50,8 @@ pub enum TlsKeys { pub struct TlsKeysHolder(RefCell<TlsKeys>); +impl deno_core::GcResource for TlsKeysHolder {} + impl TlsKeysHolder { pub fn take(&self) -> TlsKeys { std::mem::take(&mut *self.0.borrow_mut()) @@ -222,6 +224,8 @@ pub struct TlsKeyLookup { RefCell<HashMap<String, broadcast::Sender<Result<TlsKey, ErrorType>>>>, } +impl deno_core::GcResource for TlsKeyLookup {} + impl TlsKeyLookup { /// Multiple `poll` calls are safe, but this method is not starvation-safe. Generally /// only one `poll`er should be active at any time. |