From ab241f8f650e4af841e528594e1cdab3663a5e71 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Sun, 12 Apr 2026 16:36:24 +0100 Subject: [PATCH] chore(deps): Update sd-notify --- src/router/run.rs | 4 ++-- src/service/config/mod.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/router/run.rs b/src/router/run.rs index 34cdfb0fe..04663c718 100644 --- a/src/router/run.rs +++ b/src/router/run.rs @@ -73,7 +73,7 @@ pub(crate) async fn start(server: Arc) -> Result> { let services = Services::build(server).await?.start().await?; #[cfg(all(feature = "systemd", target_os = "linux"))] - sd_notify::notify(false, &[sd_notify::NotifyState::Ready]) + sd_notify::notify(&[sd_notify::NotifyState::Ready]) .expect("failed to notify systemd of ready state"); debug!("Started"); @@ -86,7 +86,7 @@ pub(crate) async fn stop(services: Arc) -> Result<()> { debug!("Shutting down..."); #[cfg(all(feature = "systemd", target_os = "linux"))] - sd_notify::notify(false, &[sd_notify::NotifyState::Stopping]) + sd_notify::notify(&[sd_notify::NotifyState::Stopping]) .expect("failed to notify systemd of stopping state"); // Wait for all completions before dropping or we'll lose them to the module diff --git a/src/service/config/mod.rs b/src/service/config/mod.rs index 07401845b..d115d645f 100644 --- a/src/service/config/mod.rs +++ b/src/service/config/mod.rs @@ -70,7 +70,7 @@ impl Deref for Service { fn handle_reload(&self) -> Result { if self.server.config.config_reload_signal { #[cfg(all(feature = "systemd", target_os = "linux"))] - sd_notify::notify(false, &[ + sd_notify::notify(&[ sd_notify::NotifyState::Reloading, sd_notify::NotifyState::monotonic_usec_now().expect("Failed to read monotonic time"), ]) @@ -80,7 +80,7 @@ fn handle_reload(&self) -> Result { self.reload(&config_paths)?; #[cfg(all(feature = "systemd", target_os = "linux"))] - sd_notify::notify(false, &[sd_notify::NotifyState::Ready]) + sd_notify::notify(&[sd_notify::NotifyState::Ready]) .expect("failed to notify systemd of ready state"); }