aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2023-10-21 22:05:26 +0200
committerGitHub <[email protected]>2023-10-21 22:05:26 +0200
commitd9d7b125e4fcaa3aedd7b57a69e6880e012ccf33 (patch)
treefba162e613bf62984a3a7fb867c6d3c5d593f101 /src
parente8a8b2d33eec5da6701b04181b14de755e8b8063 (diff)
parented47f77439a74ff58cc05367bd7a9d9fec324d97 (diff)
downloadwebol-d9d7b125e4fcaa3aedd7b57a69e6880e012ccf33.tar
webol-d9d7b125e4fcaa3aedd7b57a69e6880e012ccf33.tar.gz
webol-d9d7b125e4fcaa3aedd7b57a69e6880e012ccf33.zip
Merge pull request #5 from FxQnLr/fix-init-db
fixed move of init_db_pool
Diffstat (limited to 'src')
-rw-r--r--src/db.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db.rs b/src/db.rs
index 295780e..3c51e2b 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -1,9 +1,13 @@
1#[cfg(debug_assertions)]
1use std::env; 2use std::env;
2 3
3use serde::Serialize; 4use serde::Serialize;
4use sqlx::{PgPool, postgres::PgPoolOptions}; 5use sqlx::{PgPool, postgres::PgPoolOptions};
5use tracing::{debug, info}; 6use tracing::{debug, info};
6 7
8#[cfg(not(debug_assertions))]
9use crate::config::SETTINGS;
10
7#[derive(Serialize)] 11#[derive(Serialize)]
8pub struct Device { 12pub struct Device {
9 pub id: String, 13 pub id: String,