Skip to content

Commit

Permalink
worker/jobs/publish_notifications: Remove obsolete comment
Browse files Browse the repository at this point in the history
Email sending is fully async now, and no `spawn_blocking()` calls are needed anymore.
  • Loading branch information
Turbo87 committed Nov 28, 2024
1 parent 4caa5c0 commit 59f681d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/worker/jobs/send_publish_notifications.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ impl BackgroundJob for SendPublishNotificationsJob {
return Ok(());
}

// Sending emails is currently a blocking operation, so we have to use
// `spawn_blocking()` to run it in a separate thread.
let mut results = Vec::with_capacity(recipients.len());

for (ref recipient, email_address) in recipients {
Expand Down

0 comments on commit 59f681d

Please sign in to comment.