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 environment;
|
||||||
pub mod server;
|
pub mod server;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::config::server::CONFIG;
|
use crate::config::CONFIG;
|
||||||
use sea_orm::{Database, DbConn, DbErr};
|
use sea_orm::{Database, DbConn, DbErr};
|
||||||
|
|
||||||
static DB_CONN: once_cell::sync::OnceCell<DbConn> = once_cell::sync::OnceCell::new();
|
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};
|
use redis::{Client, Connection, RedisError};
|
||||||
|
|
||||||
static REDIS_CLIENT: once_cell::sync::OnceCell<Client> = once_cell::sync::OnceCell::new();
|
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)]
|
#[derive(thiserror::Error, Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::config::server::CONFIG;
|
use crate::config::CONFIG;
|
||||||
use crate::database::redis_conn;
|
use crate::database::redis_conn;
|
||||||
use redis::{Commands, RedisError};
|
use redis::{Commands, RedisError};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue