forked from p53841790/wheat-cache
fix(hashx): fix HIncrBy err catch
This commit is contained in:
parent
08bc1892df
commit
40afd8057d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue