summaryrefslogtreecommitdiff
path: root/src/db.rs
diff options
context:
space:
mode:
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 c012b47..8a6b16e 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -13,7 +13,8 @@ pub 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 pub ip: String,
17 pub times: Option<Vec<i64>>
17} 18}
18 19
19pub async fn init_db_pool() -> PgPool { 20pub async fn init_db_pool() -> PgPool {