【架构优化】list设置容量,避免动态扩容
This commit is contained in:
parent
e6f7db6cca
commit
fb4367080d
@ -339,7 +339,7 @@ func (p *Player) handle(m *msg.Msg) error {
|
||||
FriendMod := p.PlayMod.getFriendMod()
|
||||
FriendMod.Interact(m.From, friend.INTERACT_TYPE_VISIT, m.SendT)
|
||||
p.UpdateUserInfo()
|
||||
p.Kafka(PLAYROOM_LOST, map[string]interface{}{"uid": m.From, "item": Items})
|
||||
p.TeLog("playroom_lost", map[string]interface{}{"uid": m.From, "item": Items})
|
||||
p.PushClientRes(PlayroomMod.NotifyLose())
|
||||
case msg.HANDLE_TYPE_PLAYROOM_GAME:
|
||||
FriendMod := p.PlayMod.getFriendMod()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user