```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

refactor(logic): 调整PprofWeb启动逻辑位置

将PprofWeb的goroutine启动从debug条件块内移出到条件块外,
确保无论是否为调试模式都能正确启动Pprof服务
```
This commit is contained in:
昔念
2026-03-29 02:11:21 +08:00
parent 03a28c968b
commit a52d3df5f9

View File

@@ -65,9 +65,8 @@ func Start() {
if cool.Config.ServerInfo.IsDebug == 1 {
g.DB().SetDebug(true)
go PprofWeb()
}
go PprofWeb()
port, err := determinePort(cool.Config.ServerInfo.CanPort)
cool.Config.ServerInfo.Port = uint32(port)
if err != nil {