File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ pub fn main() {
239
239
let mut count = 1 ;
240
240
let mut total = 0 ;
241
241
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" ) ;
243
243
total += count;
244
244
eprintln ! (
245
245
"moved {} rows to s3 in this batch, total moved so far: {}" ,
Original file line number Diff line number Diff line change 3
3
pub ( crate ) use self :: add_package:: add_package_into_database;
4
4
pub ( crate ) use self :: add_package:: add_build_into_database;
5
5
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;
8
8
pub use self :: delete_crate:: delete_crate;
9
9
10
10
use postgres:: { Connection , TlsMode } ;
@@ -14,7 +14,7 @@ use r2d2;
14
14
use r2d2_postgres;
15
15
16
16
mod add_package;
17
- pub mod file;
17
+ pub ( crate ) mod file;
18
18
mod migrate;
19
19
mod delete_crate;
20
20
pub mod blacklist;
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ pub use self::docbuilder::options::DocBuilderOptions;
50
50
pub use self :: docbuilder:: metadata:: Metadata ;
51
51
pub use self :: web:: Server ;
52
52
53
- pub mod error;
53
+ pub ( crate ) mod error;
54
54
pub mod db;
55
55
pub mod utils;
56
56
mod docbuilder;
You can’t perform that action at this time.
0 commit comments