chore (backend-rs): config::server::CONFIG -> config::CONFIG
This commit is contained in:
parent
574d3b3fe5
commit
3039458c4c
5 changed files with 6 additions and 4 deletions
|
@ -1,2 +1,4 @@
|
|||
pub use server::CONFIG;
|
||||
|
||||
pub mod environment;
|
||||
pub mod server;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::config::server::CONFIG;
|
||||
use crate::config::CONFIG;
|
||||
use sea_orm::{Database, DbConn, DbErr};
|
||||
|
||||
static DB_CONN: once_cell::sync::OnceCell<DbConn> = once_cell::sync::OnceCell::new();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::config::server::CONFIG;
|
||||
use crate::config::CONFIG;
|
||||
use redis::{Client, Connection, RedisError};
|
||||
|
||||
static REDIS_CLIENT: once_cell::sync::OnceCell<Client> = once_cell::sync::OnceCell::new();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::config::server::CONFIG;
|
||||
use crate::config::CONFIG;
|
||||
|
||||
#[derive(thiserror::Error, Debug)]
|
||||
pub enum Error {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::config::server::CONFIG;
|
||||
use crate::config::CONFIG;
|
||||
use crate::database::redis_conn;
|
||||
use redis::{Commands, RedisError};
|
||||
|
||||
|
|
Loading…
Reference in a new issue