[pbs-devel] [PATCH proxmox 1/3] fix u2f example

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Jan 14 14:39:52 CET 2021


From: Wolfgang Bumiller <w.bumiller at proxmox.com>

Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 proxmox/examples/u2ftest.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/proxmox/examples/u2ftest.rs b/proxmox/examples/u2ftest.rs
index fc5ada3..ad09ed5 100644
--- a/proxmox/examples/u2ftest.rs
+++ b/proxmox/examples/u2ftest.rs
@@ -52,7 +52,7 @@ use hyper::service::{make_service_fn, service_fn};
 use hyper::{Body, Request, Response, Server};
 use serde::{Deserialize, Serialize};
 use serde_json::Value;
-use tokio::stream::StreamExt;
+use futures::stream::TryStreamExt;
 
 use proxmox::tools::tfa::u2f;
 
@@ -65,7 +65,7 @@ fn main() {
 }
 
 #[cfg(feature = "examples")]
-#[tokio::main]
+#[tokio::main(flavor = "current_thread")]
 async fn main() -> Result<(), Error> {
     do_main().await
 }
-- 
2.20.1






More information about the pbs-devel mailing list