This commit is contained in:
2023-07-24 00:25:37 +02:00
parent 9fcf51d6e1
commit 6bee9ca631
4 changed files with 168 additions and 76 deletions

View File

@@ -1,3 +1,4 @@
use once_cell::sync::Lazy;
use serde::Deserialize;
fn get_env(env: &'static str) -> String {
@@ -40,6 +41,6 @@ impl Config {
}
}
lazy_static! {
pub static ref CONFIG: Config = Config::load();
}
pub static CONFIG: Lazy<Config> = Lazy::new(|| {
Config::load()
});