aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 854b59d..545d8fe 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -14,6 +14,7 @@ use crate::db::init_db_pool;
14use crate::routes::device::{get_device, post_device, put_device}; 14use crate::routes::device::{get_device, post_device, put_device};
15use crate::routes::start::start; 15use crate::routes::start::start;
16use crate::routes::status::status; 16use crate::routes::status::status;
17use crate::services::ping::{BroadcastCommands, PingMap};
17 18
18mod auth; 19mod auth;
19mod config; 20mod config;
@@ -72,6 +73,6 @@ async fn main() {
72 73
73pub struct AppState { 74pub struct AppState {
74 db: PgPool, 75 db: PgPool,
75 ping_send: Sender<String>, 76 ping_send: Sender<BroadcastCommands>,
76 ping_map: Arc<Mutex<HashMap<String, (String, bool)>>>, 77 ping_map: PingMap,
77} \ No newline at end of file 78} \ No newline at end of file