remove double signal

pull/113/head
renruifeng 2019-09-08 23:55:30 +08:00
parent 68e7126a9d
commit 8de920ab1d
1 changed files with 1 additions and 1 deletions

View File

@ -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)