Fix flush borrowing on checking operation
continuous-integration/drone the build failed Details

This commit is contained in:
Olivier 'reivilibre' 2021-11-13 10:59:27 +00:00
parent ea66727412
commit 6234022c0d
2 changed files with 2 additions and 2 deletions

View File

@ -168,8 +168,6 @@ fn wrapped_main() -> anyhow::Result<i32> {
bail!("You need to specify either --shallow or --deep.");
};
pile.flush()?;
if error_count > 0 {
eprintln!("THERE ARE {} ERRORS.", error_count);
return Ok(1);

View File

@ -239,6 +239,7 @@ pub fn check_deep<RP: RawPile>(
pile.raw_pile.delete(Keyspace::Chunk, &vacuum_id)?;
pbar.inc(1);
}
pile.flush()?;
pbar.finish_and_clear();
}
}
@ -389,6 +390,7 @@ pub fn check_shallow<RP: RawPile>(
pile.raw_pile.delete(Keyspace::Chunk, &vacuum_id)?;
pbar.inc(1);
}
pile.flush()?;
pbar.finish_and_clear();
}
}