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

@ -43,7 +43,7 @@
"tslint": "^5.16.0",
"typescript": "^4.1.3",
"webpack": "^5.0.0",
"webpack-bundle-analyzer": "^3.3.2",
"webpack-bundle-analyzer": "^4.4.2",
"webpack-cli": "^4.2.0",
"webpack-merge": "^4.2.1",
"worker-loader": "^3.0.7"
@ -65,7 +65,6 @@
"react-dom": "^16.8.6",
"react-svg": "^8.0.6",
"throttle-debounce": "^2.1.0",
"webpack-bundle-analyzer": "^4.4.2",
"worker-loader": "^3.0.7"
},
"jest": {

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 {