Reassign loop index to another variable

This commit is contained in:
Ben Adrian Sarmiento
2024-06-07 19:50:23 +02:00
parent db086b19b3
commit 1ef31ebe7b
2 changed files with 11 additions and 9 deletions

View File

@@ -123,12 +123,12 @@ func MainApp(configPath string) {
)
//// pprof
workerPool.Submit(func() {
if err := netHttp.ListenAndServe(":6060", nil); err != nil && err != netHttp.ErrServerClosed {
zurglog.Errorf("Failed to start pprof: %v", err)
os.Exit(1)
}
})
// workerPool.Submit(func() {
// if err := netHttp.ListenAndServe(":6060", nil); err != nil && err != netHttp.ErrServerClosed {
// zurglog.Errorf("Failed to start pprof: %v", err)
// os.Exit(1)
// }
// })
addr := fmt.Sprintf("%s:%s", config.GetHost(), config.GetPort())
zurglog.Infof("Starting server on %s", addr)