fix: 修改多个处理函数的返回类型为指针类型,以提高内存使用效率并避免不必要的拷贝
This commit is contained in:
@@ -90,7 +90,7 @@ func (c *WebSocketClient) receiveMessages() {
|
||||
}
|
||||
go func() {
|
||||
reply := handler.MsgInHandler(msg)
|
||||
if reply.ReplyMsg != "" {
|
||||
if reply != nil {
|
||||
action.ActionManager.SendMsg(reply)
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user