From 9a009a69c92fb07b3785c300600bb922b840e1fd Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Thu, 26 Dec 2024 16:50:14 +0800 Subject: [PATCH] redis msg cache --- pkg/common/storage/controller/msg_transfer.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/common/storage/controller/msg_transfer.go b/pkg/common/storage/controller/msg_transfer.go index edb98c7f98..f5d6be2b71 100644 --- a/pkg/common/storage/controller/msg_transfer.go +++ b/pkg/common/storage/controller/msg_transfer.go @@ -251,9 +251,6 @@ func (db *msgTransferDatabase) BatchInsertChat2Cache(ctx context.Context, conver userSeqMap[m.SendID] = m.Seq seqs = append(seqs, m.Seq) } - if err := db.msgCache.DelMessageBySeqs(ctx, conversationID, seqs); err != nil { - return 0, false, nil, err - } if err := db.msgCache.SetMessageBySeqs(ctx, conversationID, datautil.Slice(msgs, convert.MsgPb2DB)); err != nil { return 0, false, nil, err }