Fix buffer signal.Notify (SCC-SA1017)

This commit is contained in:
Mael GRAMAIN 2021-02-25 17:35:30 -04:00
parent dcd5da2cfb
commit 4f23676f89

View file

@ -67,7 +67,7 @@ func main() {
}
}()
sig := make(chan os.Signal)
sig := make(chan os.Signal, 1)
signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM)
s := <-sig
logrus.Infof("Signal (%v) received, stopping\n", s)