Skip to content

Commit 62eb732

Browse files
committed
render: Move render_and_upload_readme task into the worker module
1 parent 233f8fd commit 62eb732

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

src/controllers/krate/publish.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use crate::models::{
1515
};
1616
use crate::worker;
1717

18-
use crate::render;
1918
use crate::schema::*;
2019
use crate::util::errors::{cargo_err, AppResult};
2120
use crate::util::{read_fill, read_le_u32, LimitErrorReader, Maximums};
@@ -198,7 +197,7 @@ pub fn publish(req: &mut dyn RequestExt) -> EndpointResult {
198197
verify_tarball(&pkg_name, &tarball, maximums.max_unpack_size)?;
199198

200199
if let Some(readme) = new_crate.readme {
201-
render::render_and_upload_readme(
200+
worker::render_and_upload_readme(
202201
version.id,
203202
readme,
204203
new_crate

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ pub mod github;
4545
pub mod metrics;
4646
pub mod middleware;
4747
mod publish_rate_limit;
48-
pub mod render;
4948
pub mod schema;
5049
pub mod sql;
5150
mod test_util;

src/worker/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
mod daily_db_maintenance;
77
pub mod dump_db;
88
mod git;
9+
mod readmes;
910
mod update_downloads;
1011

1112
pub use daily_db_maintenance::daily_db_maintenance;
1213
pub use dump_db::dump_db;
1314
pub use git::{add_crate, squash_index, yank};
15+
pub use readmes::render_and_upload_readme;
1416
pub use update_downloads::update_downloads;
File renamed without changes.

0 commit comments

Comments
 (0)