Replaces `unwrap` with `?` when writing snapshot version file (#32542)
This commit is contained in:
parent
d8516eea4c
commit
6d30429dd1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue