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

This commit is contained in:
昔念
2026-02-23 14:45:20 +08:00
parent 6b316b868c
commit fc5ddcb3f4
3 changed files with 6 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ go tool pprof -http :8081 "http://127.0.0.1:9909/debug/pprof/profile"
go tool pprof -http :8081 "http://202.189.15.67:62672/debug/pprof/profile" go tool pprof -http :8081 "http://202.189.15.67:62672/debug/pprof/profile"
go tool pprof -http :8081 "http://8.162.8.203:9909/debug/pprof//profile" go tool pprof -http :8081 "http://8.162.8.203:9909/debug/pprof//profile"
go tool pprof -http :8081 "http://8.162.23.87:9909/debug/pprof//profile" go tool pprof -http :8081 "http://8.162.23.87:9910/debug/pprof//profile"
详情查看 [文档](./docs) 详情查看 [文档](./docs)

View File

@@ -83,7 +83,9 @@ func (h Controller) FreshChoiceFightLevel(data *fight.C2S_FRESH_CHOICE_FIGHT_LEV
for _, v := range boss.BossIds { for _, v := range boss.BossIds {
r := service.NewBossService().Get(v) r := service.NewBossService().Get(v)
result.BossId = append(result.BossId, uint32(r.MonID)) if r != nil {
result.BossId = append(result.BossId, uint32(r.MonID))
}
} }

View File

@@ -6,6 +6,7 @@ import (
"blazing/logic/service/common" "blazing/logic/service/common"
"encoding/binary" "encoding/binary"
"sync" "sync"
"time"
"context" "context"
@@ -228,7 +229,7 @@ func NewClientData(c gnet.Conn) *ClientData {
cd.LF = lockfree.NewLockfree( cd.LF = lockfree.NewLockfree(
8, 8,
cd, cd,
lockfree.NewConditionBlockStrategy(), lockfree.NewSleepBlockStrategy(time.Millisecond),
) )
// 启动Lockfree // 启动Lockfree
if err := cd.LF.Start(); err != nil { if err := cd.LF.Start(); err != nil {