From a8879d79c67f2631388e244548f7499b367e93ce Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Tue, 5 Jul 2022 14:48:36 -0500 Subject: [PATCH] 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 Acked-by: Robin Jarry --- lib/msgstore.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/msgstore.go b/lib/msgstore.go index 6ce1702..8808965 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -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,