Skip to content

Commit

Permalink
use buffered chan for os.Signal
Browse files Browse the repository at this point in the history
  • Loading branch information
i-norden committed Oct 11, 2021
1 parent 2fc57c2 commit d53bfae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func serve() {
logWithCommand.Info("state validator disabled")
}

shutdown := make(chan os.Signal)
shutdown := make(chan os.Signal, 1)
signal.Notify(shutdown, os.Interrupt)
<-shutdown
if graphQL != nil {
Expand Down

0 comments on commit d53bfae

Please sign in to comment.