Skip to content

Commit

Permalink
remove unnecessary channel buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
therealplato committed May 28, 2017
1 parent 2f11acd commit fb772b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func trimEmpty(s []string) []string {
}

func awaitSignal(cancel context.CancelFunc) {
signals := make(chan os.Signal, 1)
signals := make(chan os.Signal)
signal.Notify(signals, syscall.SIGINT, syscall.SIGTERM)
<-signals
cancel()
Expand Down

0 comments on commit fb772b0

Please sign in to comment.