mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
improve code and comment
This commit is contained in:
@@ -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)]
|
||||
{
|
||||
|
||||
@@ -36,7 +36,9 @@ fn notify_systemd(state: &str) {
|
||||
#[derive(Debug)]
|
||||
pub enum ShutdownSignal {
|
||||
CtrlC,
|
||||
#[cfg(unix)]
|
||||
Sigterm,
|
||||
#[cfg(unix)]
|
||||
Sigint,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user