From b336fd39444e8089d35a7a2bd4c0c3e8228c6c36 Mon Sep 17 00:00:00 2001 From: Mroik Date: Fri, 10 Apr 2026 00:21:25 +0200 Subject: Add mail processing scaffolding After receiving the email we don't want to process it in the same thread as soon as we can, instead we queue it to a MailProcessor. This allows us to be more flexible with the pipeline and reduce the amount of concurrency for the database connection. This also helps with writing possible fences around resource consumption. Signed-off-by: Mroik --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index c42a1ee..570c437 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,4 +8,4 @@ anyhow = "1.0.102" env_logger = "0.11.10" log = "0.4.29" rusqlite = "0.39.0" -tokio = { version = "1.51.0", features = ["macros", "rt-multi-thread"] } +tokio = { version = "1.51.0", features = ["macros", "rt-multi-thread", "sync"] } -- cgit v1.3