fix(hashx): fix HIncrBy err catch

This commit is contained in:
bandl 2021-11-18 18:58:35 +08:00
parent 08bc1892df
commit 40afd8057d
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ func (h HashX) Add(renewal int, keys ...string) (count int, result []string, err
if v, ok := h[key]; ok {
res, err := v.Incr(int32(renewal))
if err != nil {
return count, result, errorx.New("option key err, key:%s, err:%v", key, err)
continue
}
count += 1