mirror of https://github.com/goproxyio/goproxy
parent
68e7126a9d
commit
ec6941ab0c
2
main.go
2
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)
|
||||
|
|
Loading…
Reference in New Issue