diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
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; | |||
14 | use crate::routes::device::{get_device, post_device, put_device}; | 14 | use crate::routes::device::{get_device, post_device, put_device}; |
15 | use crate::routes::start::start; | 15 | use crate::routes::start::start; |
16 | use crate::routes::status::status; | 16 | use crate::routes::status::status; |
17 | use crate::services::ping::{BroadcastCommands, PingMap}; | ||
17 | 18 | ||
18 | mod auth; | 19 | mod auth; |
19 | mod config; | 20 | mod config; |
@@ -72,6 +73,6 @@ async fn main() { | |||
72 | 73 | ||
73 | pub struct AppState { | 74 | pub 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 |