src/backup/datastore.rs: impl last_backup helper

This commit is contained in:
Dietmar Maurer
2019-05-11 11:21:13 +02:00
parent c09775011a
commit b02a52e3a5
4 changed files with 19 additions and 2 deletions

View File

@ -27,6 +27,7 @@ pub struct BackupEnvironment {
pub datastore: Arc<DataStore>,
pub backup_dir: BackupDir,
pub path: PathBuf,
pub last_backup: Option<BackupInfo>,
state: Arc<Mutex<SharedBackupState>>
}
@ -54,6 +55,7 @@ impl BackupEnvironment {
formatter: &JSON_FORMATTER,
backup_dir,
path,
last_backup: None,
state: Arc::new(Mutex::new(state)),
}
}