From de6742c04fc09667ad1760114f8299dbe088d8ec Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 22 May 2019 11:14:56 +0200 Subject: [PATCH] src/bin/h2test.rs: removed This test does no work anymore. --- src/bin/h2test.rs | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 src/bin/h2test.rs diff --git a/src/bin/h2test.rs b/src/bin/h2test.rs deleted file mode 100644 index dc5dcd5d..00000000 --- a/src/bin/h2test.rs +++ /dev/null @@ -1,39 +0,0 @@ -use failure::*; -use futures::*; - -use serde_json::json; -use proxmox_backup::client::*; - -fn run() -> Result<(), Error> { - - let host = "localhost"; - - let username = "root@pam"; - - let mut client = HttpClient::new(host, username)?; - - let param = json!({"backup-type": "host", "backup-id": "test" }); - let upgrade = client.h2upgrade("/api2/json/admin/datastore/store2/backup", Some(param)); - - let res = upgrade.and_then(|h2| { - println!("start http2"); - let result1 = h2.get("test1", None); - let result2 = h2.get("test2", None); - - result1.join(result2) - }).wait()?; - - println!("GOT {:?}", res); - - Ok(()) -} - -fn main() { - - hyper::rt::run(futures::future::lazy(move || { - if let Err(err) = run() { - eprintln!("ERROR: {}", err); - } - Ok(()) - })); -}