small note in origin store

This commit is contained in:
Brian Picciano 2023-05-11 11:53:27 +02:00
parent 79ba735fd6
commit a0bdf610d9

View File

@ -362,6 +362,9 @@ pub mod git {
let descr_file_path = self.descr_file_path(descr_id.as_ref());
// TODO it's possible that opening the file will fail if syncing is
// still ongoing, as writing the descr file is the last step after
// initial sync has succeeded.
let descr_file = fs::File::open(descr_file_path)
.map_err(|e| store::AllDescrsError::Unexpected(Box::from(e)))?;