Skip to content

Commit

Permalink
Update fs-storage/src/file_storage.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Tarek Elsayed <[email protected]>
  • Loading branch information
twitu and tareknaser authored Jun 11, 2024
1 parent e55e7e5 commit 0934c54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs-storage/src/file_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ where
{
/// Create a new file storage with a diagnostic label and file path
/// The storage will be initialized using the disk data, if the path exists
///
/// Note: if the file storage already exists, the data will be read from the file
/// without overwriting it.
pub fn new(label: String, path: &Path) -> Result<Self> {
let time = SystemTime::now();
let mut storage = Self {
Expand Down

0 comments on commit 0934c54

Please sign in to comment.