Skip to content

Commit

Permalink
Make channel buffered
Browse files Browse the repository at this point in the history
  • Loading branch information
mchompalova committed Jan 20, 2020
1 parent 7deb72f commit 621d337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -202,7 +202,7 @@ func serveAdminEndpoints(healthService *healthService, appSystemCode string, app
}

func waitForSignal() {
ch := make(chan os.Signal)
ch := make(chan os.Signal, 1)
signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM)
<-ch
}

0 comments on commit 621d337

Please sign in to comment.