Skip to content

Commit

Permalink
fix(worker): remove unn-necessary deref
Browse files Browse the repository at this point in the history
  • Loading branch information
obviyus committed Mar 9, 2024
1 parent 5ddd3ef commit 9b6b63e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ pub async fn process_job(
sender: &Sender,
) -> Result<Box<dyn Any + Send>, Box<dyn StdError>> {
match job_type {
JobType::Result => Ok(Box::new(result_worker(&*pool, sender).await?)),
JobType::Alert => Ok(Box::new(alert_worker(&*pool, sender).await?)),
JobType::Wdc => Ok(Box::new(fetch_wdc_standings(&*pool).await?)),
JobType::Wcc => Ok(Box::new(fetch_wcc_standings(&*pool).await?)),
JobType::CalendarRefresh => Ok(Box::new(refresh_current_calendar(&*pool, None).await?)),
JobType::Result => Ok(Box::new(result_worker(pool, sender).await?)),
JobType::Alert => Ok(Box::new(alert_worker(pool, sender).await?)),
JobType::Wdc => Ok(Box::new(fetch_wdc_standings(pool).await?)),
JobType::Wcc => Ok(Box::new(fetch_wcc_standings(pool).await?)),
JobType::CalendarRefresh => Ok(Box::new(refresh_current_calendar(pool, None).await?)),
}
}

Expand Down

0 comments on commit 9b6b63e

Please sign in to comment.