chore(dep): upgrade dependency

This commit is contained in:
hexxa 2021-08-25 22:52:44 +08:00 committed by Hexxa
parent 072b8b7fd7
commit 3531e7a265
3 changed files with 5 additions and 2 deletions

View file

@ -259,6 +259,7 @@ func (us *KVUserStore) SetUsed(id uint64, incr bool, capacity int64) error {
if !ok {
return fmt.Errorf("user (%d) does not exist", id)
}
gotUser := &User{}
err := json.Unmarshal([]byte(infoStr), gotUser)
if err != nil {