Fix buffer signal.Notify (SCC-SA1017)
This commit is contained in:
parent
dcd5da2cfb
commit
4f23676f89
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -67,7 +67,7 @@ func main() {
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
sig := make(chan os.Signal)
|
sig := make(chan os.Signal, 1)
|
||||||
signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM)
|
signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM)
|
||||||
s := <-sig
|
s := <-sig
|
||||||
logrus.Infof("Signal (%v) received, stopping\n", s)
|
logrus.Infof("Signal (%v) received, stopping\n", s)
|
||||||
|
|
Loading…
Reference in a new issue