src/api2/backup.rs: new required backup-time parameter

The client should pass the time as parameter.
This commit is contained in:
Dietmar Maurer
2019-07-25 13:44:01 +02:00
parent e128d4e84f
commit ca5d0b61ca
4 changed files with 42 additions and 12 deletions

View File

@ -12,7 +12,9 @@ fn upload_speed() -> Result<usize, Error> {
let client = HttpClient::new(host, username)?;
let client = client.start_backup(datastore, "host", "speedtest", false).wait()?;
let backup_time = chrono::Utc::now();
let client = client.start_backup(datastore, "host", "speedtest", backup_time, false).wait()?;
println!("start upload speed test");
let res = client.upload_speedtest().wait()?;