OSDN Git Service

update
authorChengcheng Zhang <943420582@qq.com>
Tue, 2 Jul 2019 06:43:12 +0000 (14:43 +0800)
committerChengcheng Zhang <943420582@qq.com>
Tue, 2 Jul 2019 06:43:12 +0000 (14:43 +0800)
account/accounts.go

index 4af6fd5..934be78 100644 (file)
@@ -293,13 +293,7 @@ func (m *Manager) DeleteAccount(accountID string) (err error) {
        m.aliasCache.Remove(account.Alias)
        m.cacheMu.Unlock()
 
-       if err := m.store.InitBatch(); err != nil {
-               return err
-       }
        m.store.DeleteAccount(account)
-       if err := m.store.CommitBatch(); err != nil {
-               return err
-       }
 
        return nil
 }