修改部分代码

This commit is contained in:
1
2025-08-31 06:53:42 +00:00
parent 9ef6b7b8bc
commit ab7df82bae
10 changed files with 115 additions and 33 deletions

View File

@@ -26,6 +26,8 @@ var (
}
s := g.Server()
s.EnableAdmin()
s.SetServerAgent(cool.Config.Name)
s.BindHookHandler("/*", ghttp.HookBeforeServe, beforeServeHook)
runtime.SetMutexProfileFraction(1) // (非必需)开启对锁调用的跟踪