Make tracing filter reload handles mutable

Makes the following diff nicer.
This commit is contained in:
Lambda 2025-02-14 23:59:41 +00:00
parent 4cc390345a
commit 5eab758bd2
3 changed files with 9 additions and 7 deletions

View file

@ -66,7 +66,7 @@ pub(crate) mod marker {
pub(crate) struct Service {
pub(crate) db: &'static dyn Data,
pub(crate) reload_handles: Option<FilterReloadHandles>,
pub(crate) reload_handles: Option<Arc<RwLock<FilterReloadHandles>>>,
// actual_destination, host
pub(crate) actual_destination_cache: Arc<RwLock<WellKnownMap>>,
@ -252,7 +252,7 @@ impl Service {
let mut s = Self {
db,
config,
reload_handles,
reload_handles: reload_handles.map(|h| Arc::new(RwLock::new(h))),
keypair: Arc::new(keypair),
dns_resolver: TokioAsyncResolver::tokio_from_system_conf()
.map_err(|e| {