tokio 1.0

This commit is contained in:
Robin Appelman 2021-01-20 17:27:31 +01:00
commit f2b0589cf6
4 changed files with 312 additions and 502 deletions

View file

@ -1,7 +1,7 @@
use async_stream::try_stream;
use color_eyre::Result;
use rumqttc::{AsyncClient, Event, EventLoop, MqttOptions, Packet, Publish, QoS};
use tokio::stream::{Stream, StreamExt};
use tokio_stream::{Stream, StreamExt};
pub async fn mqtt_stream(
mqtt_options: MqttOptions,