Skip to content
Snippets Groups Projects
Commit bccf1b02 authored by ale's avatar ale
Browse files

Fix usage of unbuffered channel in signal.Notify

parent c1584b63
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@ func main() {
// Set up a clean shutdown function on SIGTERM that will
// cancel the controlling Context.
sigCh := make(chan os.Signal)
sigCh := make(chan os.Signal, 1)
go func() {
<-sigCh
log.Printf("terminating due to signal...")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment