fix: don't run an initial full-hash update every start

feat/type-attributes
Tomáš Mládek 2022-09-19 22:21:01 +02:00
parent f584aec97c
commit ac0b4d4a9d
1 changed files with 2 additions and 2 deletions

View File

@ -283,9 +283,9 @@ fn main() -> Result<()> {
if !matches.is_present("NO_INITIAL_UPDATE") {
info!("Running initial update...");
// let new = open_result.new;
let initial = open_result.new;
block_background::<_, _, anyhow::Error>(move || {
let _ = state.store.update(&upend, job_container.clone(), true);
let _ = state.store.update(&upend, job_container.clone(), initial);
let _ = extractors::extract_all(upend, state.store, job_container);
Ok(())
})