From bc6e6941492c0e674d2a8bbab185ed3824ed47a7 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Thu, 1 Jun 2023 15:05:19 +0800 Subject: [PATCH] seq --- pkg/common/db/controller/msg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/db/controller/msg.go b/pkg/common/db/controller/msg.go index 48cf890f5..2ae987b3d 100644 --- a/pkg/common/db/controller/msg.go +++ b/pkg/common/db/controller/msg.go @@ -457,7 +457,7 @@ func (db *commonMsgDatabase) GetMsgBySeqsRange(ctx context.Context, userID strin if err != nil && errs.Unwrap(err) != redis.Nil { return 0, 0, nil, err } - if userMinSeq < minSeq { + if userMinSeq > minSeq { minSeq = userMinSeq } if minSeq > end {