use buffered chan for os.Signal
This commit is contained in:
parent
2fc57c2f31
commit
d53bfae243
@ -100,7 +100,7 @@ func serve() {
|
|||||||
logWithCommand.Info("state validator disabled")
|
logWithCommand.Info("state validator disabled")
|
||||||
}
|
}
|
||||||
|
|
||||||
shutdown := make(chan os.Signal)
|
shutdown := make(chan os.Signal, 1)
|
||||||
signal.Notify(shutdown, os.Interrupt)
|
signal.Notify(shutdown, os.Interrupt)
|
||||||
<-shutdown
|
<-shutdown
|
||||||
if graphQL != nil {
|
if graphQL != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user