diff --git a/README.md b/README.md index e22c32f..58dff00 100644 --- a/README.md +++ b/README.md @@ -16,17 +16,17 @@ For a sync approach the stream has to implement the [`std::io::Read`] and [`std: ## Features - - MQTT v5 - - Runtime agnostic (Smol, Tokio) - - Sync - - TLS/TCP - - Lean - - Keep alive depends on actual communication +- MQTT v5 +- Runtime agnostic (Smol, Tokio) +- Sync +- TLS/TCP +- Lean +- Keep alive depends on actual communication ### To do - - no_std (Requires a lot of work to use no heap allocations and depend on stack) - - Even More testing - - More documentation +- no_std (Requires a lot of work to use no heap allocations and depend on stack) +- Even More testing +- More documentation ## MSRV From 0.3 the tokio and smol variants will require MSRV: 1.75 due to async fn in trait feature. diff --git a/src/lib.rs b/src/lib.rs index be445c3..3d87a8b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -737,7 +737,7 @@ mod lib_test { let (n, _) = futures::join!( async { - match network.poll(&mut pingresp).await { + match network.run(&mut pingresp).await { Ok(crate::NetworkStatus::OutgoingDisconnect) => return Ok(pingresp), Ok(crate::NetworkStatus::KeepAliveTimeout) => panic!(), Ok(crate::NetworkStatus::IncomingDisconnect) => panic!(),