src/api2/backup.rs: new required backup-time parameter
The client should pass the time as parameter.
This commit is contained in:
@ -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()?;
|
||||
|
Reference in New Issue
Block a user