fix(browser): refresh used space after all uploads are done

This commit is contained in:
hexxa 2021-10-05 18:15:51 +08:00 committed by Hexxa
parent 8b47f2f385
commit 5eafcf884d
3 changed files with 25 additions and 20 deletions

View file

@ -279,7 +279,6 @@ func (us *KVUserStore) SetPwd(id uint64, pwd string) error {
func (us *KVUserStore) CanIncrUsed(id uint64, capacity int64) (bool, error) {
us.mtx.Lock()
defer us.mtx.Unlock()
userID := fmt.Sprint(id)
infoStr, ok := us.store.GetStringIn(UsersNs, userID)
if !ok {