diff --git a/cmd/dummy/main.go b/cmd/dummy/main.go index f8a55a0..f2bc995 100644 --- a/cmd/dummy/main.go +++ b/cmd/dummy/main.go @@ -63,10 +63,8 @@ func run() error { interrupt := make(chan os.Signal, 1) signal.Notify(interrupt, os.Interrupt, syscall.SIGTERM) - select { - case x := <-interrupt: - l.Info().Msgf("received `%v`", x) - } + x := <-interrupt + l.Info().Msgf("received `%v`", x) const timeout = 5 * time.Second