Fix: HTTP server failing to listen should be fatal
This commit is contained in:
parent
6d43e2e6d2
commit
34323c67f6
|
@ -40,7 +40,7 @@ func main() {
|
|||
signal.Notify(stopChan, syscall.SIGINT, syscall.SIGTERM)
|
||||
|
||||
go func() {
|
||||
log.Error().Err(http.Serve()).Msg("HTTP error")
|
||||
log.Fatal().Err(http.Serve()).Msg("HTTP error")
|
||||
}()
|
||||
|
||||
<-stopChan // wait for SIGINT
|
||||
|
|
Loading…
Reference in New Issue