Skip to content

Commit dbc2f90

Browse files
committed
db_connector: use dotenvy instead of depricated dotenv crate.
1 parent df0862f commit dbc2f90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

db_connector/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn run_migrations(
2020
* Create db connection pool
2121
*/
2222
pub fn get_connection_pool() -> Pool {
23-
dotenv::dotenv().ok();
23+
dotenvy::dotenv().ok();
2424
let url = std::env::var("DATABASE_URL").expect("DATABASE_URL must be set");
2525
let manager = diesel::r2d2::ConnectionManager::<PgConnection>::new(url);
2626
Pool::builder()
@@ -30,7 +30,7 @@ pub fn get_connection_pool() -> Pool {
3030
}
3131

3232
pub fn test_connection_pool() -> Pool {
33-
dotenv::dotenv().ok();
33+
dotenvy::dotenv().ok();
3434
let url = std::env::var("DATABASE_URL").expect("DATABASE_URL must be set");
3535
let manager = diesel::r2d2::ConnectionManager::<PgConnection>::new(url);
3636
Pool::builder()

0 commit comments

Comments
 (0)