mirror of
https://github.com/prometheus/prometheus
synced 2025-03-11 07:59:57 +00:00
Merge pull request #15371 from bboreham/main-naming
[REFACTOR] Small improvement to top-level naming
This commit is contained in:
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
Block a user