aboutsummaryrefslogtreecommitdiff
path: root/src/db.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2023-10-29 21:09:46 +0100
committerFxQnLr <[email protected]>2023-10-29 21:09:46 +0100
commitdd303dc41e4d500e48760f79351720cc2c1c9ffe (patch)
treeb730a1da1e0e58e12494bbab88076d403f4ccd97 /src/db.rs
parent84c32953ae5f52be44af4b48381747f55cb04f4a (diff)
downloadwebol-dd303dc41e4d500e48760f79351720cc2c1c9ffe.tar
webol-dd303dc41e4d500e48760f79351720cc2c1c9ffe.tar.gz
webol-dd303dc41e4d500e48760f79351720cc2c1c9ffe.zip
add ip to database and use for ping, remove arc from pingmap
Diffstat (limited to 'src/db.rs')
-rw-r--r--src/db.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db.rs b/src/db.rs
index 3c51e2b..51ea469 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -12,7 +12,8 @@ use crate::config::SETTINGS;
12pub struct Device { 12pub struct Device {
13 pub id: String, 13 pub id: String,
14 pub mac: String, 14 pub mac: String,
15 pub broadcast_addr: String 15 pub broadcast_addr: String,
16 pub ip: String
16} 17}
17 18
18pub async fn init_db_pool() -> PgPool { 19pub async fn init_db_pool() -> PgPool {