aboutsummaryrefslogtreecommitdiff
path: root/src/db.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2023-11-08 12:44:17 +0100
committerFxQnLr <[email protected]>2023-11-08 12:44:17 +0100
commita197f4721d3b6e79c73f16c8db69ae9f3154acec (patch)
tree1d98e3464e8f05be11e1f4f99da904a9b05c5c2a /src/db.rs
parent4f124e6ba636e6191c2960d96d0057f3061988fc (diff)
downloadwebol-a197f4721d3b6e79c73f16c8db69ae9f3154acec.tar
webol-a197f4721d3b6e79c73f16c8db69ae9f3154acec.tar.gz
webol-a197f4721d3b6e79c73f16c8db69ae9f3154acec.zip
add eta with average startup time
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 {