mirror of https://github.com/prometheus/prometheus
Merge pull request #15371 from bboreham/main-naming
[REFACTOR] Small improvement to top-level namingpull/15447/head
commit
dd1d707e1c
|
@ -1369,10 +1369,12 @@ func main() {
|
|||
},
|
||||
)
|
||||
}
|
||||
if err := g.Run(); err != nil {
|
||||
logger.Error("Error running goroutines from run.Group", "err", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
func() { // This function exists so the top of the stack is named 'main.main.funcxxx' and not 'oklog'.
|
||||
if err := g.Run(); err != nil {
|
||||
logger.Error("Fatal error", "err", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}()
|
||||
logger.Info("See you next time!")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue