Skip to content

Commit

Permalink
Merge pull request #78 from movio/buffered-interupt-channel
Browse files Browse the repository at this point in the history
Buffer `os.Interrupt` channel
  • Loading branch information
suessflorian authored Oct 13, 2021
2 parents 972d3c2 + 00811b8 commit be8383a
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 @@ -39,7 +39,7 @@ func Main() {

go gtw.UpdateSchemas(cfg.PollIntervalDuration)

signalChan := make(chan os.Signal)
signalChan := make(chan os.Signal, 1)
signal.Notify(signalChan, os.Interrupt)

ctx, cancel := context.WithCancel(context.Background())
Expand Down

0 comments on commit be8383a

Please sign in to comment.