improve code and comment

This commit is contained in:
houseme
2025-06-27 16:50:29 +08:00
parent 33e5d5a14c
commit f4014a56b6
2 changed files with 2 additions and 1 deletions
-1
View File
@@ -384,7 +384,6 @@ async fn run(opt: config::Opt) -> Result<()> {
loop {
debug!("waiting for SIGINT or SIGTERM has_tls_certs: {}", has_tls_certs);
// Wait for a connection
// Wait for a connection
let (socket, _) = {
#[cfg(unix)]
{
+2
View File
@@ -36,7 +36,9 @@ fn notify_systemd(state: &str) {
#[derive(Debug)]
pub enum ShutdownSignal {
CtrlC,
#[cfg(unix)]
Sigterm,
#[cfg(unix)]
Sigint,
}