]> git.proxmox.com Git - proxmox-backup.git/commitdiff
examples: fix HttpClient::new usage
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 30 Sep 2020 07:57:25 +0000 (09:57 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 30 Sep 2020 08:49:20 +0000 (10:49 +0200)
examples/download-speed.rs
examples/upload-speed.rs

index 0ec6cb688918f4b0bb4710c175ce971195ca9b91..fa27843687d67bfb6af52937422fcc99f426e3bd 100644 (file)
@@ -32,7 +32,7 @@ async fn run() -> Result<(), Error> {
         .interactive(true)
         .ticket_cache(true);
 
-    let client = HttpClient::new(host, username, options)?;
+    let client = HttpClient::new(host, 8007, username, options)?;
 
     let backup_time = proxmox::tools::time::parse_rfc3339("2019-06-28T10:49:48Z")?;
 
index 896e31e3412db9aaafd84a06f38629fcb6608df8..d26e6db3aafc05ca5c5f3b010ef2ced0baea930e 100644 (file)
@@ -14,7 +14,7 @@ async fn upload_speed() -> Result<f64, Error> {
         .interactive(true)
         .ticket_cache(true);
 
-    let client = HttpClient::new(host, username, options)?;
+    let client = HttpClient::new(host, 8007, username, options)?;
 
     let backup_time = proxmox::tools::time::epoch_i64();