OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84f3332
)
update
author
Chengcheng Zhang
<943420582@qq.com>
Tue, 2 Jul 2019 06:43:12 +0000
(14:43 +0800)
committer
Chengcheng Zhang
<943420582@qq.com>
Tue, 2 Jul 2019 06:43:12 +0000
(14:43 +0800)
account/accounts.go
patch
|
blob
|
history
diff --git
a/account/accounts.go
b/account/accounts.go
index
4af6fd5
..
934be78
100644
(file)
--- a/
account/accounts.go
+++ b/
account/accounts.go
@@
-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
}