msg cache

This commit is contained in:
wenxu12345
2022-05-24 21:34:02 +08:00
committed by Xinwei Xiong(cubxxw-openim)
parent daa716a083
commit 7e38335f0c
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -799,6 +799,10 @@ func getSeqUid(uid string, seq uint32) string {
return indexGen(uid, seqSuffix)
}
func GetSeqUid(uid string, seq uint32) string {
return getSeqUid(uid, seq)
}
func getMsgIndex(seq uint32) int {
seqSuffix := seq / singleGocMsgNum
var index uint32