mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-24 02:16:16 +08:00
proto modify
This commit is contained in:
parent
d991947d4c
commit
bff7d0923a
@ -115,10 +115,10 @@ func (och *OnlineHistoryRedisConsumerHandler) Run(channelID int) {
|
|||||||
if len(storageMsgList) > 0 {
|
if len(storageMsgList) > 0 {
|
||||||
lastSeq, err := och.msgDatabase.BatchInsertChat2Cache(ctx, msgChannelValue.aggregationID, storageMsgList)
|
lastSeq, err := och.msgDatabase.BatchInsertChat2Cache(ctx, msgChannelValue.aggregationID, storageMsgList)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
log.NewError(triggerID, "single data insert to redis err", err.Error(), storageMsgList)
|
||||||
och.singleMsgFailedCountMutex.Lock()
|
och.singleMsgFailedCountMutex.Lock()
|
||||||
och.singleMsgFailedCount += uint64(len(storageMsgList))
|
och.singleMsgFailedCount += uint64(len(storageMsgList))
|
||||||
och.singleMsgFailedCountMutex.Unlock()
|
och.singleMsgFailedCountMutex.Unlock()
|
||||||
log.NewError(triggerID, "single data insert to redis err", err.Error(), storageMsgList)
|
|
||||||
} else {
|
} else {
|
||||||
och.singleMsgSuccessCountMutex.Lock()
|
och.singleMsgSuccessCountMutex.Lock()
|
||||||
och.singleMsgSuccessCount += uint64(len(storageMsgList))
|
och.singleMsgSuccessCount += uint64(len(storageMsgList))
|
||||||
|
@ -130,13 +130,13 @@ message FriendRequest{
|
|||||||
|
|
||||||
|
|
||||||
///////////////////////////////////base end/////////////////////////////////////
|
///////////////////////////////////base end/////////////////////////////////////
|
||||||
message PullMessageBySeqListReq{
|
message PullMessageBySeqsReq{
|
||||||
string userID = 1;
|
string userID = 1;
|
||||||
repeated int64 seqs = 3;
|
repeated int64 seqs = 3;
|
||||||
map <string, seqList>groupSeqList = 4;
|
map <string, seqList>groupSeqs = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message seqList {
|
message seqs {
|
||||||
repeated int64 seqs = 1;
|
repeated int64 seqs = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -145,7 +145,7 @@ message MsgDataList {
|
|||||||
repeated MsgData msgDataList = 1;
|
repeated MsgData msgDataList = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PullMessageBySeqListResp {
|
message PullMessageBySeqsResp {
|
||||||
int32 errCode = 1;
|
int32 errCode = 1;
|
||||||
string errMsg = 2;
|
string errMsg = 2;
|
||||||
repeated MsgData list = 3;
|
repeated MsgData list = 3;
|
||||||
@ -155,7 +155,7 @@ message PullMessageBySeqListResp {
|
|||||||
|
|
||||||
|
|
||||||
message GetMaxAndMinSeqReq {
|
message GetMaxAndMinSeqReq {
|
||||||
repeated string groupIDList = 1;
|
repeated string groupIDs = 1;
|
||||||
string userID = 2;
|
string userID = 2;
|
||||||
}
|
}
|
||||||
message MaxAndMinSeq{
|
message MaxAndMinSeq{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user