Replaces `unwrap` with `?` when writing snapshot version file (#32542)

This commit is contained in:
Brooks 2023-07-19 16:42:46 -04:00 committed by GitHub
parent d8516eea4c
commit 6d30429dd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1286,7 +1286,7 @@ pub fn add_bank_snapshot(
measure!(serialize_status_cache(&slot_deltas, &status_cache_path)?);
let version_path = bank_snapshot_dir.join(SNAPSHOT_VERSION_FILENAME);
write_snapshot_version_file(version_path, snapshot_version).unwrap();
write_snapshot_version_file(version_path, snapshot_version)?;
// Mark this directory complete so it can be used. Check this flag first before selecting for deserialization.
let state_complete_path = bank_snapshot_dir.join(SNAPSHOT_STATE_COMPLETE_FILENAME);