Skip to content

Commit ecbdc84

Browse files
committed
Checking the db-cache is not required
1 parent c107161 commit ecbdc84

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/docbuilder/queue.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,10 @@ use crates_index_diff::{ChangeKind, Index};
1010
impl DocBuilder {
1111
/// Updates crates.io-index repository and adds new crates into build queue
1212
pub fn get_new_crates(&mut self) -> Result<()> {
13-
try!(self.load_database_cache());
1413
let conn = try!(connect_db());
1514
let index = try!(Index::from_path_or_cloned(&self.options.crates_io_index_path));
1615
let changes = try!(index.fetch_changes());
1716
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-
}
2117
conn.execute("INSERT INTO queue (name, version) VALUES ($1, $2)",
2218
&[&krate.name, &krate.version]).ok();
2319
}

0 commit comments

Comments
 (0)