src/client/backup_writer.rs: move BackupClient code into extra file

And rename it to BackupWriter.
This commit is contained in:
Dietmar Maurer
2019-10-12 13:53:11 +02:00
parent 913acb41fd
commit cf9271e27c
5 changed files with 583 additions and 562 deletions

View File

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