Skip to content

Commit 5444d63

Browse files
committed
make more things pub(crate)
1 parent 3b55d65 commit 5444d63

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/bin/cratesfyi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ pub fn main() {
239239
let mut count = 1;
240240
let mut total = 0;
241241
while count != 0 {
242-
count = db::file::move_to_s3(&conn, 5_000).expect("Failed to upload batch to S3");
242+
count = db::move_to_s3(&conn, 5_000).expect("Failed to upload batch to S3");
243243
total += count;
244244
eprintln!(
245245
"moved {} rows to s3 in this batch, total moved so far: {}",

src/db/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
pub(crate) use self::add_package::add_package_into_database;
44
pub(crate) use self::add_package::add_build_into_database;
55
pub(crate) use self::add_package::CratesIoData;
6-
pub use self::file::add_path_into_database;
7-
pub use self::migrate::{migrate, migrate_temporary};
6+
pub use self::file::{add_path_into_database, move_to_s3};
7+
pub use self::migrate::migrate;
88
pub use self::delete_crate::delete_crate;
99

1010
use postgres::{Connection, TlsMode};
@@ -14,7 +14,7 @@ use r2d2;
1414
use r2d2_postgres;
1515

1616
mod add_package;
17-
pub mod file;
17+
pub(crate) mod file;
1818
mod migrate;
1919
mod delete_crate;
2020
pub mod blacklist;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub use self::docbuilder::options::DocBuilderOptions;
5050
pub use self::docbuilder::metadata::Metadata;
5151
pub use self::web::Server;
5252

53-
pub mod error;
53+
pub(crate) mod error;
5454
pub mod db;
5555
pub mod utils;
5656
mod docbuilder;

0 commit comments

Comments
 (0)