Refactored local delivery to avoid mpsc channel

This commit is contained in:
mdecimus
2025-01-17 15:29:55 +01:00
parent 00ad5a5c44
commit 2eb388674d
117 changed files with 2611 additions and 2628 deletions

View File

@@ -11,6 +11,7 @@ use directory::{
backend::internal::{manage::ChangedPrincipals, PrincipalField},
Permission, QueryBy, Type,
};
use email::mailbox::SCHEMA;
use imap_proto::{
protocol::acl::{
Arguments, GetAclResponse, ListRightsResponse, ModRightsOp, MyRightsResponse, Rights,
@@ -19,10 +20,7 @@ use imap_proto::{
Command, ResponseCode, StatusResponse,
};
use jmap::{
auth::acl::EffectiveAcl, changes::write::ChangeLog, mailbox::set::SCHEMA,
services::state::StateManager, JmapMethods,
};
use jmap::auth::acl::EffectiveAcl;
use jmap_proto::{
object::{index::ObjectIndexBuilder, Object},
types::{
@@ -352,7 +350,8 @@ impl<T: SessionStream> Session<T> {
);
if !batch.is_empty() {
data.server
.write_batch(batch)
.store()
.write(batch)
.await
.imap_ctx(&arguments.tag, trc::location!())?;
let mut changes = ChangeLogBuilder::new();