summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfx <[email protected]>2023-10-21 21:47:16 +0200
committerfx <[email protected]>2023-10-21 21:47:16 +0200
commit42c082085cfd7238c7ab87e5bd06b9e52a698a71 (patch)
tree43c4f4a3fed1421f94765cf5f2a53af26a25c50d /src
parente8a8b2d33eec5da6701b04181b14de755e8b8063 (diff)
downloadwebol-42c082085cfd7238c7ab87e5bd06b9e52a698a71.tar
webol-42c082085cfd7238c7ab87e5bd06b9e52a698a71.tar.gz
webol-42c082085cfd7238c7ab87e5bd06b9e52a698a71.zip
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,