src/api2/admin/datastore/backup/environment.rs: do not store path

This commit is contained in:
Dietmar Maurer
2019-05-11 12:13:44 +02:00
parent 51a4f63ff7
commit 6b95c7df07
2 changed files with 3 additions and 7 deletions

View File

@ -1,7 +1,6 @@
use failure::*;
use std::sync::{Arc, Mutex};
use std::collections::HashMap;
use std::path::PathBuf;
use serde_json::Value;
@ -26,7 +25,6 @@ pub struct BackupEnvironment {
pub worker: Arc<WorkerTask>,
pub datastore: Arc<DataStore>,
pub backup_dir: BackupDir,
pub path: PathBuf,
pub last_backup: Option<BackupInfo>,
state: Arc<Mutex<SharedBackupState>>
}
@ -38,7 +36,6 @@ impl BackupEnvironment {
worker: Arc<WorkerTask>,
datastore: Arc<DataStore>,
backup_dir: BackupDir,
path: PathBuf,
) -> Self {
let state = SharedBackupState {
@ -54,7 +51,6 @@ impl BackupEnvironment {
datastore,
formatter: &JSON_FORMATTER,
backup_dir,
path,
last_backup: None,
state: Arc::new(Mutex::new(state)),
}