mirror of
https://github.com/mjl-/mox.git
synced 2025-07-13 04:14:37 +03:00
Add missing wlocks around message delivery to account, mostly for tests.
This commit is contained in:
@ -358,7 +358,7 @@ func (x XOps) MailboxesMarkRead(ctx context.Context, log mlog.Log, acc *store.Ac
|
||||
|
||||
// MessageMove moves messages to the mailbox represented by mailboxName, or to mailboxID if mailboxName is empty.
|
||||
func (x XOps) MessageMove(ctx context.Context, log mlog.Log, acc *store.Account, messageIDs []int64, mailboxName string, mailboxID int64) {
|
||||
acc.WithRLock(func() {
|
||||
acc.WithWLock(func() {
|
||||
var changes []store.Change
|
||||
|
||||
x.DBWrite(ctx, acc, func(tx *bstore.Tx) {
|
||||
|
Reference in New Issue
Block a user