redis add get message

This commit is contained in:
Gordon 2022-05-24 17:49:43 +08:00
parent f5ed9d93c3
commit c224892609
2 changed files with 2 additions and 1 deletions

View File

@ -228,7 +228,7 @@ chatpersistencemysql: true
#可靠性存储
reliablestorage: false
#消息缓存时间
msgCacheTimeout: 60 * 60
msgCacheTimeout: 1800
#token config
tokenpolicy:

View File

@ -275,6 +275,7 @@ func (d *DataBases) GetMessageListBySeq(userID string, seqList []uint32, operati
msg := pbCommon.MsgData{}
err = json.Unmarshal([]byte(result), &msg)
if err != nil {
errResult = err
failedSeqList = append(failedSeqList, v)
log2.NewWarn(operationID, "Unmarshal err", result, err.Error())
} else {