Update rustfs/src/main.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
houseme
2025-04-09 19:15:49 +08:00
committed by GitHub
parent f73bc6a82b
commit f48d8fc65e
+4 -1
View File
@@ -59,7 +59,10 @@ fn notify_systemd(state: &str) {
let notify_state = match state {
"ready" => NotifyState::Ready,
"stopping" => NotifyState::Stopping,
_ => return,
_ => {
warn!("Unsupported state passed to notify_systemd: {}", state);
return;
},
};
if let Err(e) = notify(false, &[notify_state]) {