Reassign loop index to another variable
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user