Skip to content

Commit

Permalink
Add graceful shutdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghaowei0107 committed Jan 5, 2024
1 parent d7c7511 commit 284f8ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 284f8ee

Please sign in to comment.