|
@@ -4,8 +4,6 @@ import (
|
|
|
"eta/eta_api/controllers"
|
|
|
"eta/eta_api/services/alarm_msg"
|
|
|
"fmt"
|
|
|
- "log"
|
|
|
- "net/http"
|
|
|
"runtime"
|
|
|
"time"
|
|
|
|
|
@@ -16,7 +14,6 @@ import (
|
|
|
"github.com/beego/beego/v2/adapter/logs"
|
|
|
"github.com/beego/beego/v2/server/web"
|
|
|
"github.com/beego/beego/v2/server/web/context"
|
|
|
- _ "net/http/pprof"
|
|
|
)
|
|
|
|
|
|
func main() {
|
|
@@ -26,11 +23,6 @@ func main() {
|
|
|
}
|
|
|
go services.Task()
|
|
|
|
|
|
- // 启动pprof服务
|
|
|
- go func() {
|
|
|
- log.Println(http.ListenAndServe(":6060", nil))
|
|
|
- }()
|
|
|
-
|
|
|
// 异常处理
|
|
|
web.ErrorController(&controllers.ErrorController{})
|
|
|
|