mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-05 19:55:44 +08:00
revert: write msg to redis (#2883)
This commit is contained in:
parent
f0a60a71ae
commit
2b8b8b3204
@ -444,10 +444,10 @@ func (db *commonMsgDatabase) GetMsgBySeqsRange(ctx context.Context, userID strin
|
||||
}
|
||||
successMsgs = append(mongoMsgs, successMsgs...)
|
||||
|
||||
_, err = db.msg.SetMessagesToCache(ctx, conversationID, mongoMsgs)
|
||||
if err != nil {
|
||||
return 0, 0, nil, err
|
||||
}
|
||||
//_, err = db.msg.SetMessagesToCache(ctx, conversationID, mongoMsgs)
|
||||
//if err != nil {
|
||||
// return 0, 0, nil, err
|
||||
//}
|
||||
}
|
||||
|
||||
return minSeq, maxSeq, successMsgs, nil
|
||||
@ -506,10 +506,10 @@ func (db *commonMsgDatabase) GetMsgBySeqs(ctx context.Context, userID string, co
|
||||
|
||||
successMsgs = append(successMsgs, mongoMsgs...)
|
||||
|
||||
_, err = db.msg.SetMessagesToCache(ctx, conversationID, mongoMsgs)
|
||||
if err != nil {
|
||||
return 0, 0, nil, err
|
||||
}
|
||||
//_, err = db.msg.SetMessagesToCache(ctx, conversationID, mongoMsgs)
|
||||
//if err != nil {
|
||||
// return 0, 0, nil, err
|
||||
//}
|
||||
}
|
||||
return minSeq, maxSeq, successMsgs, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user