File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,10 @@ use crates_index_diff::{ChangeKind, Index};
10
10
impl DocBuilder {
11
11
/// Updates crates.io-index repository and adds new crates into build queue
12
12
pub fn get_new_crates ( & mut self ) -> Result < ( ) > {
13
- try!( self . load_database_cache ( ) ) ;
14
13
let conn = try!( connect_db ( ) ) ;
15
14
let index = try!( Index :: from_path_or_cloned ( & self . options . crates_io_index_path ) ) ;
16
15
let changes = try!( index. fetch_changes ( ) ) ;
17
16
for krate in changes. iter ( ) . filter ( |k| k. kind != ChangeKind :: Yanked ) {
18
- if self . db_cache . contains ( & format ! ( "{}-{}" , krate. name, krate. version) ) {
19
- continue ;
20
- }
21
17
conn. execute ( "INSERT INTO queue (name, version) VALUES ($1, $2)" ,
22
18
& [ & krate. name , & krate. version ] ) . ok ( ) ;
23
19
}
You can’t perform that action at this time.
0 commit comments