Commit fccd95b4 authored by hujiebin's avatar hujiebin

feat优化打点

parent a5c85c6c
...@@ -428,10 +428,10 @@ func SendSocketMicChange(seqId string, userId uint64, micUserExternalId, txGroup ...@@ -428,10 +428,10 @@ func SendSocketMicChange(seqId string, userId uint64, micUserExternalId, txGroup
} }
//记录socket,注意闭包问题 //记录socket,注意闭包问题
go func(userIds []uint64, msg *userProxy.GroupMicChange, rspUids []uint64, err error) { go func(userId uint64, msg *userProxy.GroupMicChange, rspUids []uint64, err error) {
buf, _ := json.Marshal(msg) buf, _ := json.Marshal(msg)
AddRpcLogs(MsgTypeGroupMicChange, userIds, string(buf[:]), rspUids, err) AddRpcLog(MsgTypeGroupMicChange, userId, string(buf[:]), rspUids, err)
}(userIds, msg, rspUids, err) }(userId, msg, rspUids, err)
if err != nil { if err != nil {
mylogrus.MyLog.Errorf("grpc SendSocketMicChange send fail") mylogrus.MyLog.Errorf("grpc SendSocketMicChange send fail")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment