From ec6941ab0c51784e9d4142932af5e8a628f97dea Mon Sep 17 00:00:00 2001 From: formych Date: Mon, 9 Sep 2019 00:13:05 +0800 Subject: [PATCH] remove repeated signal remove repeated sigterm signal --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 41e3fd7..cf64d26 100644 --- a/main.go +++ b/main.go @@ -96,7 +96,7 @@ func main() { }() s := make(chan os.Signal, 1) - signal.Notify(s, os.Interrupt, syscall.SIGTERM, syscall.SIGTERM) + signal.Notify(s, os.Interrupt, syscall.SIGTERM) <-s log.Println("Making a graceful shutdown...") ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)