This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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))
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user