Update geneit_backend/src/connections/db_connection.rs
This commit is contained in:
parent
299cd4db07
commit
de69009174
@ -5,7 +5,7 @@ use diesel::result::{DatabaseErrorKind, Error};
|
|||||||
use diesel::{Connection, PgConnection};
|
use diesel::{Connection, PgConnection};
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
thread_local! {
|
thread_local! {
|
||||||
static POSTGRES_CONNECTION: RefCell<Option<PgConnection>> = RefCell::new(None);
|
static POSTGRES_CONNECTION: RefCell<Option<PgConnection>> = const { RefCell::new(None) };
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Execute a request on the database
|
/// Execute a request on the database
|
||||||
|
Loading…
Reference in New Issue
Block a user