Improved error handling (part 1)

This commit is contained in:
mdecimus
2024-07-11 18:44:51 +02:00
parent ea77a98260
commit 0c2a3f09fe
179 changed files with 3409 additions and 3048 deletions

View File

@@ -127,7 +127,7 @@ impl SMTP {
);
match self.core.storage.data.write(batch.build()).await {
Ok(_) => Some(event),
Err(store::Error::AssertValueFailed) => {
Err(err) if err.matches(trc::Cause::AssertValue) => {
tracing::debug!(
context = "queue",
event = "locked",