pull/232/head
skiffer-git 3 years ago
parent fa94fd075f
commit 313cf858f0

@ -19,6 +19,8 @@ var (
sendMsgFailedCount uint64
sendMsgSuccessCount uint64
userCount uint64
sendMsgAllCountLock sync.RWMutex
)
func Init(rpcPort, wsPort int) {

@ -143,7 +143,9 @@ func (ws *WServer) pullMsgBySeqListResp(conn *UserConn, m *Req, pb *sdk_ws.PullM
}
func (ws *WServer) sendMsgReq(conn *UserConn, m *Req) {
sendMsgAllCountLock.Lock()
sendMsgAllCount++
sendMsgAllCountLock.Unlock()
log.NewInfo(m.OperationID, "Ws call success to sendMsgReq start", m.MsgIncr, m.ReqIdentifier, m.SendID, m.Data)
nReply := new(pbChat.SendMsgResp)
isPass, errCode, errMsg, pData := ws.argsValidate(m, constant.WSSendMsg)

@ -272,4 +272,4 @@ const BigVersion = "v3"
const LogFileName = "OpenIM.log"
const StatisticsTimeInterval = 300
const StatisticsTimeInterval = 60

Loading…
Cancel
Save