Ignore file-exists error.

This commit is contained in:
Paul Hauner 2019-03-12 14:42:31 +11:00
parent cce88c9923
commit efd56ebe37
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ use validator_harness::ValidatorHarness;
fn main() { fn main() {
let validator_file_path = keypairs_path(); let validator_file_path = keypairs_path();
fs::create_dir(validator_file_path.parent().unwrap()).unwrap(); let _ = fs::create_dir(validator_file_path.parent().unwrap());
let matches = App::new("Lighthouse Test Harness Runner") let matches = App::new("Lighthouse Test Harness Runner")
.version("0.0.1") .version("0.0.1")

View File

@ -25,10 +25,10 @@ pub struct TestingBeaconStateBuilder {
} }
impl TestingBeaconStateBuilder { impl TestingBeaconStateBuilder {
/// Attempts to load validators from a file in the `CARGO_MANIFEST_DIR`. If the file is /// Attempts to load validators from a file in `$HOME/.lighthouse/keypairs.raw_keypairs`. If
/// unavailable, it generates the keys at runtime. /// the file is unavailable, it generates the keys at runtime.
/// ///
/// If the `CARGO_MANIFEST_DIR` environment variable is not set, the local directory is used. /// If the `$HOME` environment variable is not set, the local directory is used.
/// ///
/// See the `Self::from_keypairs_file` method for more info. /// See the `Self::from_keypairs_file` method for more info.
/// ///