Skip to content

Commit b2dae76

Browse files
committed
Cleanup unused structs.
1 parent 8afc3d8 commit b2dae76

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/mqtt.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ use rumqttc::v5::mqttbytes::v5::{ConnectReturnCode, LastWill, Publish};
1313
use rumqttc::v5::{mqttbytes::QoS, AsyncClient, Event, Incoming, MqttOptions};
1414
use rumqttc::Transport;
1515
use rustls_pki_types::{CertificateDer, PrivateKeyDer};
16-
use serde::Serialize;
1716
use tokio::sync::mpsc;
1817
use tokio::time::sleep;
1918

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

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

26-
#[derive(Serialize)]
27-
struct CommandTopicContext {
28-
pub gateway_id: String,
29-
pub command: String,
30-
}
31-
32-
#[derive(Serialize)]
33-
struct EventTopicContext {
34-
pub gateway_id: String,
35-
pub event: String,
36-
}
37-
38-
#[derive(Serialize)]
39-
struct StateTopciContext {
40-
pub gateway_id: String,
41-
pub state: String,
42-
}
43-
4425
struct State {
4526
client: AsyncClient,
4627
qos: QoS,

0 commit comments

Comments
 (0)