diff --git a/src/controllers/krate/publish.rs b/src/controllers/krate/publish.rs index f44a78ea6c6..3f469d77cfc 100644 --- a/src/controllers/krate/publish.rs +++ b/src/controllers/krate/publish.rs @@ -52,10 +52,6 @@ const MAX_DESCRIPTION_LENGTH: usize = 1000; /// Handles the `PUT /crates/new` route. /// Used by `cargo publish` to publish a new crate or to publish a new version of an /// existing crate. -/// -/// Currently blocks the HTTP thread, perhaps some function calls can spawn new -/// threads and return completion or error through other methods a `cargo publish -/// --status` command, via crates.io's front end, or email. pub async fn publish(app: AppState, req: Parts, body: Body) -> AppResult> { let stream = body.into_data_stream(); let stream = stream.map_err(|err| std::io::Error::new(std::io::ErrorKind::Other, err)); diff --git a/src/worker/jobs/send_publish_notifications.rs b/src/worker/jobs/send_publish_notifications.rs index ebacfcab385..45f5219f56a 100644 --- a/src/worker/jobs/send_publish_notifications.rs +++ b/src/worker/jobs/send_publish_notifications.rs @@ -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 {