Fix: HTTP server failing to listen should be fatal

This commit is contained in:
kayos@tcp.direct 2023-03-23 01:22:08 -07:00
parent 6d43e2e6d2
commit 34323c67f6
No known key found for this signature in database
GPG Key ID: 4B841471B4BEE979
1 changed files with 1 additions and 1 deletions

View File

@ -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