This commit is contained in:
wangchuxiao
2023-05-09 16:55:04 +08:00
parent 7397928acf
commit 6ac95de7b7
2 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ func (c *msgCache) getSeqs(ctx context.Context, items []string, getkey func(s st
pipe := c.rdb.Pipeline()
for _, v := range items {
if err := pipe.Get(ctx, getkey(v)).Err(); err != nil && err != redis.Nil {
return nil, err
return nil, errs.Wrap(err)
}
}
result, err := pipe.Exec(ctx)