src/client/http_client.rs: add password parameter to HttpClient::new()

This commit is contained in:
Dietmar Maurer
2019-09-16 12:35:23 +02:00
parent 0e20b336e1
commit cc2ce4a92f
4 changed files with 19 additions and 17 deletions

View File

@ -9,7 +9,7 @@ async fn upload_speed() -> Result<usize, Error> {
let username = "root@pam";
let client = HttpClient::new(host, username)?;
let client = HttpClient::new(host, username, None)?;
let backup_time = chrono::Utc::now();