diff --git a/backend/src/worker/do_work.rs b/backend/src/worker/do_work.rs index 838b64378..4c530b620 100644 --- a/backend/src/worker/do_work.rs +++ b/backend/src/worker/do_work.rs @@ -141,8 +141,8 @@ pub(crate) async fn do_check_email_work( delivery.ack(BasicAckOptions::default()).await?; if let CheckEmailJobId::SingleShot = task.job_id { - send_single_shot_reply(channel, &delivery, &worker_output).await?; - } + send_single_shot_reply(channel, &delivery, &worker_output).await?; + } // Store the result. for storage in config.get_storages() { diff --git a/core/src/rules.rs b/core/src/rules.rs index 866b45c8e..88d76b4ef 100644 --- a/core/src/rules.rs +++ b/core/src/rules.rs @@ -92,12 +92,16 @@ mod tests { #[test] fn should_skip_catch_all() { - assert!( - has_rule("gmail.com", "alt4.aspmx.l.google.com.", &Rule::SkipCatchAll) - ); - - assert!( - has_rule("domain.com", ".antispamcloud.com.", &Rule::SkipCatchAll) - ) + assert!(has_rule( + "gmail.com", + "alt4.aspmx.l.google.com.", + &Rule::SkipCatchAll + )); + + assert!(has_rule( + "domain.com", + ".antispamcloud.com.", + &Rule::SkipCatchAll + )) } }