chore: deps hot_reload

This commit is contained in:
Jun Kurihara 2025-06-30 18:26:56 +09:00
commit 0d4234b620
No known key found for this signature in database
GPG key ID: 9C5AF0A526862FEF
10 changed files with 17 additions and 19 deletions

View file

@ -20,7 +20,7 @@ ahash = { version = "0.8.12" }
tracing = { version = "0.1.41" }
derive_builder = { version = "0.20.2" }
thiserror = { version = "2.0.12" }
hot_reload = { version = "0.1.9" }
hot_reload = { version = "0.2.0" }
async-trait = { version = "0.1.88" }
rustls = { version = "0.23.28", default-features = false, features = [
"std",

View file

@ -27,8 +27,6 @@ pub use crate::{
// Constants
/// Default delay in seconds to watch certificates
const DEFAULT_CERTS_WATCH_DELAY_SECS: u32 = 60;
/// Load certificates only when updated
const LOAD_CERTS_ONLY_WHEN_UPDATED: bool = true;
/// Result type inner of certificate reloader service
type ReloaderServiceResultInner = (
@ -62,6 +60,7 @@ where
let certs_watch_period = certs_watch_period.unwrap_or(DEFAULT_CERTS_WATCH_DELAY_SECS);
let (cert_reloader_service, cert_reloader_rx) =
ReloaderService::<CryptoReloader, ServerCryptoBase>::new(&source, certs_watch_period, !LOAD_CERTS_ONLY_WHEN_UPDATED).await?;
ReloaderService::<CryptoReloader, ServerCryptoBase>::with_delay(&source, certs_watch_period).await?;
Ok((cert_reloader_service, cert_reloader_rx))
}