diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-09 22:05:46 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-09 22:05:46 +0200 |
| commit | 92a8fd40209c5595475fb0288741d0347fe244c4 (patch) | |
| tree | bc6a275c32bfe9f71dc98bd39146c82938631c82 /crates/client/src/atuin_common/tls.rs | |
| parent | chore: Add more things (diff) | |
| download | atuin-92a8fd40209c5595475fb0288741d0347fe244c4.zip | |
chore: Move more stuff out of atuin-client
Diffstat (limited to 'crates/client/src/atuin_common/tls.rs')
| -rw-r--r-- | crates/client/src/atuin_common/tls.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/crates/client/src/atuin_common/tls.rs b/crates/client/src/atuin_common/tls.rs deleted file mode 100644 index 3736f878..00000000 --- a/crates/client/src/atuin_common/tls.rs +++ /dev/null @@ -1,15 +0,0 @@ -use std::sync::Once; - -static INIT: Once = Once::new(); - -/// Ensure the rustls crypto provider (ring) is installed. -/// -/// Must be called before creating any reqwest clients. Safe to call -/// multiple times — only the first call installs the provider. -pub(crate) fn ensure_crypto_provider() { - INIT.call_once(|| { - rustls::crypto::ring::default_provider() - .install_default() - .expect("Failed to install rustls crypto provider"); - }); -} |
