mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
job: remove match with a single branch
This commit is contained in:
@@ -303,12 +303,8 @@ pub async fn add(context: &Context, job: Job) -> Result<()> {
|
|||||||
job.save(context).await.context("failed to save job")?;
|
job.save(context).await.context("failed to save job")?;
|
||||||
|
|
||||||
if delay_seconds == 0 {
|
if delay_seconds == 0 {
|
||||||
match action {
|
info!(context, "interrupt: imap");
|
||||||
Action::ResyncFolders | Action::DownloadMsg => {
|
context.interrupt_inbox(InterruptInfo::new(false)).await;
|
||||||
info!(context, "interrupt: imap");
|
|
||||||
context.interrupt_inbox(InterruptInfo::new(false)).await;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user