Chore: Refactor Server Run and Shutdown (#32611)

This commit is contained in:
Alexander Emelin
2021-04-07 10:44:06 +03:00
committed by GitHub
parent 2c8728a2a4
commit 7c182b1d2d
4 changed files with 198 additions and 78 deletions
+1
View File
@@ -194,6 +194,7 @@ func listenToSystemSignals(s *server.Server) {
}
case sig := <-signalChan:
s.Shutdown(fmt.Sprintf("System signal: %s", sig))
return
}
}
}