mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 07:25:36 +01:00
Update
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -209,9 +209,9 @@ dependencies = [
|
||||
"ctrlc",
|
||||
"dateparser",
|
||||
"futures",
|
||||
"lazy_static",
|
||||
"log",
|
||||
"moka",
|
||||
"once_cell",
|
||||
"pretty_env_logger",
|
||||
"regex",
|
||||
"reqwest",
|
||||
|
||||
@@ -25,7 +25,6 @@ regex = "1.8.3"
|
||||
chrono = "0.4.25"
|
||||
dateparser = "0.2.0"
|
||||
sentry = "0.31.3"
|
||||
lazy_static = "1.4.0"
|
||||
moka = { version = "0.11.1", features = ["future"] }
|
||||
axum = "0.6.18"
|
||||
smallvec = { version = "1.10.0", features = ["serde"] }
|
||||
@@ -33,3 +32,4 @@ smartstring = { version = "1.0.1", features = ["serde"] }
|
||||
tokio-stream = "0.1.14"
|
||||
tower = "0.4.13"
|
||||
tower-http = { version = "0.4.3", features = ["trace"] }
|
||||
once_cell = "1.18.0"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
pub struct Config {
|
||||
pub telegram_bot_api: reqwest::Url,
|
||||
|
||||
@@ -59,6 +61,6 @@ impl Config {
|
||||
}
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
pub static ref CONFIG: Config = Config::load();
|
||||
}
|
||||
pub static CONFIG: Lazy<Config> = Lazy::new(|| {
|
||||
Config::load()
|
||||
});
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
use std::sync::Arc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user