diff options
author | FxQnLr <[email protected]> | 2023-10-29 19:55:26 +0100 |
---|---|---|
committer | FxQnLr <[email protected]> | 2023-10-29 19:55:26 +0100 |
commit | 0cca10290d089aabac8f2e4356cfaf80f06ae194 (patch) | |
tree | 708d44f2c439bb23b664114e16d92af63c693f3b /src/main.rs | |
parent | 00dd8a9abee6b9f0cfc37c6f20f30f0d99dfe91a (diff) | |
download | webol-0cca10290d089aabac8f2e4356cfaf80f06ae194.tar webol-0cca10290d089aabac8f2e4356cfaf80f06ae194.tar.gz webol-0cca10290d089aabac8f2e4356cfaf80f06ae194.zip |
does what is expected, but badly
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 |