Skip to content

Commit

Permalink
Cleanup unused structs.
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed May 13, 2024
1 parent 8afc3d8 commit b2dae76
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/mqtt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use rumqttc::v5::mqttbytes::v5::{ConnectReturnCode, LastWill, Publish};
use rumqttc::v5::{mqttbytes::QoS, AsyncClient, Event, Incoming, MqttOptions};
use rumqttc::Transport;
use rustls_pki_types::{CertificateDer, PrivateKeyDer};
use serde::Serialize;
use tokio::sync::mpsc;
use tokio::time::sleep;

Expand All @@ -23,24 +22,6 @@ use crate::config::Configuration;

static STATE: OnceCell<Arc<State>> = OnceCell::new();

#[derive(Serialize)]
struct CommandTopicContext {
pub gateway_id: String,
pub command: String,
}

#[derive(Serialize)]
struct EventTopicContext {
pub gateway_id: String,
pub event: String,
}

#[derive(Serialize)]
struct StateTopciContext {
pub gateway_id: String,
pub state: String,
}

struct State {
client: AsyncClient,
qos: QoS,
Expand Down

0 comments on commit b2dae76

Please sign in to comment.