From 284f8ee0f93c78b589ae8ce376d46b412a71fe0f Mon Sep 17 00:00:00 2001 From: wanghaowei Date: Fri, 5 Jan 2024 17:17:23 +0800 Subject: [PATCH] Add graceful shutdown. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index bdf6ce3a..947043c8 100644 --- a/main.go +++ b/main.go @@ -230,6 +230,6 @@ func main() { s := make(chan os.Signal, 1) signal.Notify(s, syscall.SIGINT, syscall.SIGTERM) _sig := <-s - log.Infof("Receive exit signal, bye! Signal: %s", _sig.String()) + log.Infof("Receive exit signal,bye! Signal: %s", _sig.String()) os.Exit(0) }