Remove dotenv

This commit is contained in:
Thomas Avé 2024-11-06 00:11:08 +01:00
parent abc57d84cd
commit dc0f2f5d0e
1 changed files with 0 additions and 2 deletions

View File

@ -1,6 +1,5 @@
use chrono::{NaiveDateTime, TimeDelta, TimeZone, Datelike};
use diesel::{dsl::sql, prelude::*, sql_types};
use dotenvy::dotenv;
use self::models::*;
use std::net::SocketAddr;
use std::env;
@ -22,7 +21,6 @@ pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!("migrations/");
async fn main() {
// initialize tracing
tracing_subscriber::fmt::init();
dotenv().ok();
let db_url = env::var("DATABASE_URL").unwrap();
let manager = deadpool_diesel::sqlite::Manager::new(db_url, deadpool_diesel::Runtime::Tokio1);
let pool = deadpool_diesel::sqlite::Pool::builder(manager)