]> git.proxmox.com Git - proxmox-backup.git/commitdiff
fixup examples
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 7 Jul 2021 09:49:42 +0000 (11:49 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 7 Jul 2021 09:49:42 +0000 (11:49 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
examples/download-speed.rs
examples/h2client.rs
examples/h2s-client.rs
examples/h2s-server.rs
examples/h2server.rs
examples/test_chunk_speed2.rs
examples/upload-speed.rs

index a4afb7bab4a64630d80de01eb2fbef61c873c992..90b007e06cc40e487b77ae1d7fb70a0706067918 100644 (file)
@@ -59,7 +59,7 @@ async fn run() -> Result<(), Error> {
 }
 
 fn main() {
-    if let Err(err) = proxmox_backup::tools::runtime::main(run()) {
+    if let Err(err) = pbs_runtime::main(run()) {
         eprintln!("ERROR: {}", err);
     }
     println!("DONE");
index 8551af873f31e9f2361829b3d6449403c7c93ef3..754a122d5665b32fd1b9cf14ae626c6caa694837 100644 (file)
@@ -69,7 +69,7 @@ fn send_request(
 }
 
 fn main() -> Result<(), Error> {
-    proxmox_backup::tools::runtime::main(run())
+    pbs_runtime::main(run())
 }
 
 async fn run() -> Result<(), Error> {
index a3b0d22cd26abef216ad5344d085cb908920cc6e..4bd54a15918c698335fdb7af3fa819ab0ddd9f4b 100644 (file)
@@ -69,7 +69,7 @@ fn send_request(
 }
 
 fn main() -> Result<(), Error> {
-    proxmox_backup::tools::runtime::main(run())
+    pbs_runtime::main(run())
 }
 
 async fn run() -> Result<(), Error> {
index 4357fe45bfdc1a6a91f902ffd75c34de9bc15117..a11476a82419a479696ded826df39bd6f2972a15 100644 (file)
@@ -6,10 +6,10 @@ use hyper::{Body, Request, Response};
 use openssl::ssl::{SslAcceptor, SslFiletype, SslMethod};
 use tokio::net::{TcpListener, TcpStream};
 
-use proxmox_backup::configdir;
+use pbs_buildcfg::configdir;
 
 fn main() -> Result<(), Error> {
-    proxmox_backup::tools::runtime::main(run())
+    pbs_runtime::main(run())
 }
 
 async fn run() -> Result<(), Error> {
index 1b06557c9dcf504a2e4e7e973084660982132f8a..98e06f5290878729a95a892b8321d7e15836cf96 100644 (file)
@@ -5,7 +5,7 @@ use hyper::{Body, Request, Response};
 use tokio::net::{TcpListener, TcpStream};
 
 fn main() -> Result<(), Error> {
-    proxmox_backup::tools::runtime::main(run())
+    pbs_runtime::main(run())
 }
 
 async fn run() -> Result<(), Error> {
index b68fd54e75964cb091df2531d130c86866ff250e..555bd5ac663b6f38af3d6078ceca5f87f02db59d 100644 (file)
@@ -13,7 +13,7 @@ use proxmox_backup::backup::*;
 // Note: I can currently get about 830MB/s
 
 fn main() {
-    if let Err(err) = proxmox_backup::tools::runtime::main(run()) {
+    if let Err(err) = pbs_runtime::main(run()) {
         panic!("ERROR: {}", err);
     }
 }
index 05e44aaf01c1caf7337e5b2e6bf9bd973f801a8c..c2c549cae2abded0b3c8b76f65d6b693d1e17475 100644 (file)
@@ -27,7 +27,7 @@ async fn upload_speed() -> Result<f64, Error> {
 }
 
 fn main()  {
-    match proxmox_backup::tools::runtime::main(upload_speed()) {
+    match pbs_runtime::main(upload_speed()) {
         Ok(mbs) => {
             println!("average upload speed: {} MB/s", mbs);
         }