mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-27 22:12:15 +08:00
fix: redis pipe exec
This commit is contained in:
parent
2ce8d22189
commit
d521f0b031
@ -63,7 +63,7 @@ func (s *seqConversationCacheRedis) batchGetMaxSeq(ctx context.Context, keys []s
|
|||||||
for i, key := range keys {
|
for i, key := range keys {
|
||||||
result[i] = pipe.HGet(ctx, key, "CURR")
|
result[i] = pipe.HGet(ctx, key, "CURR")
|
||||||
}
|
}
|
||||||
if _, err := pipe.Exec(ctx); err != nil {
|
if _, err := pipe.Exec(ctx); err != nil && !errors.Is(err, redis.Nil) {
|
||||||
return errs.Wrap(err)
|
return errs.Wrap(err)
|
||||||
}
|
}
|
||||||
var notFoundKey []string
|
var notFoundKey []string
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user