Skip to content

Commit

Permalink
Fix std-tokio example build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rmja committed Dec 19, 2023
1 parent b2a727a commit 65c689e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions examples/src/bin/std-tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
use atat_examples::common;

use atat::{
asynch::AtatClient, AtatIngress, Config, DefaultDigester, Ingress, ResponseChannel, UrcChannel,
asynch::{AtatClient, Client},
AtatIngress, Config, DefaultDigester, Ingress, ResponseChannel, UrcChannel,
};
use embedded_io_adapters::tokio_1::FromTokio;
use std::process::exit;
Expand All @@ -23,14 +24,10 @@ async fn main() -> ! {
static URC_CHANNEL: UrcChannel<common::Urc, URC_CAPACITY, URC_SUBSCRIBERS> = UrcChannel::new();
let ingress = Ingress::new(
DefaultDigester::<common::Urc>::default(),
RES_CHANNEL.publisher(),
RES_CHANNEL.publisher().unwrap(),
URC_CHANNEL.publisher(),
);
let mut client = AtatClient::new(
FromTokio::new(writer),
RES_CHANNEL.subscriber(),
Config::default(),
);
let mut client = Client::new(FromTokio::new(writer), &RES_CHANNEL, Config::default());

tokio::spawn(ingress_task(ingress, FromTokio::new(reader)));

Expand Down

0 comments on commit 65c689e

Please sign in to comment.