fixup examples

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-07-07 11:49:42 +02:00
parent a5951b4f38
commit 86c831a5c3
7 changed files with 8 additions and 8 deletions

View File

@ -59,7 +59,7 @@ async fn run() -> Result<(), Error> {
} }
fn main() { fn main() {
if let Err(err) = proxmox_backup::tools::runtime::main(run()) { if let Err(err) = pbs_runtime::main(run()) {
eprintln!("ERROR: {}", err); eprintln!("ERROR: {}", err);
} }
println!("DONE"); println!("DONE");

View File

@ -69,7 +69,7 @@ fn send_request(
} }
fn main() -> Result<(), Error> { fn main() -> Result<(), Error> {
proxmox_backup::tools::runtime::main(run()) pbs_runtime::main(run())
} }
async fn run() -> Result<(), Error> { async fn run() -> Result<(), Error> {

View File

@ -69,7 +69,7 @@ fn send_request(
} }
fn main() -> Result<(), Error> { fn main() -> Result<(), Error> {
proxmox_backup::tools::runtime::main(run()) pbs_runtime::main(run())
} }
async fn run() -> Result<(), Error> { async fn run() -> Result<(), Error> {

View File

@ -6,10 +6,10 @@ use hyper::{Body, Request, Response};
use openssl::ssl::{SslAcceptor, SslFiletype, SslMethod}; use openssl::ssl::{SslAcceptor, SslFiletype, SslMethod};
use tokio::net::{TcpListener, TcpStream}; use tokio::net::{TcpListener, TcpStream};
use proxmox_backup::configdir; use pbs_buildcfg::configdir;
fn main() -> Result<(), Error> { fn main() -> Result<(), Error> {
proxmox_backup::tools::runtime::main(run()) pbs_runtime::main(run())
} }
async fn run() -> Result<(), Error> { async fn run() -> Result<(), Error> {

View File

@ -5,7 +5,7 @@ use hyper::{Body, Request, Response};
use tokio::net::{TcpListener, TcpStream}; use tokio::net::{TcpListener, TcpStream};
fn main() -> Result<(), Error> { fn main() -> Result<(), Error> {
proxmox_backup::tools::runtime::main(run()) pbs_runtime::main(run())
} }
async fn run() -> Result<(), Error> { async fn run() -> Result<(), Error> {

View File

@ -13,7 +13,7 @@ use proxmox_backup::backup::*;
// Note: I can currently get about 830MB/s // Note: I can currently get about 830MB/s
fn main() { fn main() {
if let Err(err) = proxmox_backup::tools::runtime::main(run()) { if let Err(err) = pbs_runtime::main(run()) {
panic!("ERROR: {}", err); panic!("ERROR: {}", err);
} }
} }

View File

@ -27,7 +27,7 @@ async fn upload_speed() -> Result<f64, Error> {
} }
fn main() { fn main() {
match proxmox_backup::tools::runtime::main(upload_speed()) { match pbs_runtime::main(upload_speed()) {
Ok(mbs) => { Ok(mbs) => {
println!("average upload speed: {} MB/s", mbs); println!("average upload speed: {} MB/s", mbs);
} }