msgstore: remove duplicate calls to store.update
Move and Delete commands perform a store.update() when their worker is completed and also when the method is called. This patch removes the call performed in the store.Move and store.Delete methods. Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
parent
399854c103
commit
a8879d79c6
1 changed files with 0 additions and 3 deletions
|
@ -411,7 +411,6 @@ func (store *MessageStore) Delete(uids []uint32,
|
|||
}
|
||||
cb(msg)
|
||||
})
|
||||
store.update()
|
||||
}
|
||||
|
||||
func (store *MessageStore) revertDeleted(uids []uint32) {
|
||||
|
@ -464,8 +463,6 @@ func (store *MessageStore) Move(uids []uint32, dest string, createDest bool,
|
|||
store.Delete(uids, cb)
|
||||
}
|
||||
})
|
||||
|
||||
store.update()
|
||||
}
|
||||
|
||||
func (store *MessageStore) Flag(uids []uint32, flag models.Flag,
|
||||
|
|
Loading…
Reference in a new issue