From a0bdf610d9982cd1111392f85e9788c47ec6d8bc Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Thu, 11 May 2023 11:53:27 +0200 Subject: [PATCH] small note in origin store --- src/origin/store.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/origin/store.rs b/src/origin/store.rs index 756f1b6..23a4ee4 100644 --- a/src/origin/store.rs +++ b/src/origin/store.rs @@ -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)))?;