mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 16:02:26 +08:00
网关服务器IO阻塞优化
This commit is contained in:
@@ -33,9 +33,7 @@ func DoForward[IET model.InvokeEntryType](player *model.Player, invokeHandler *m
|
||||
}
|
||||
}
|
||||
if invokeHandler.AllLen() == 0 && invokeHandler.AllExceptCurLen() == 0 && invokeHandler.HostLen() == 0 {
|
||||
for _, v := range world.GetAllPlayer() {
|
||||
GAME_MANAGER.SendMsg(cmdId, v.PlayerID, player.ClientSeq, newNtf)
|
||||
}
|
||||
return
|
||||
}
|
||||
if invokeHandler.AllLen() > 0 {
|
||||
reflection.SetStructFieldValue(newNtf, forwardField, invokeHandler.EntryListForwardAll)
|
||||
|
||||
Reference in New Issue
Block a user