Skip to content

Commit

Permalink
refactor: remove webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
itsusinn committed Feb 6, 2022
1 parent 2025b15 commit 60eb430
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ pub struct Config {

pub target_address_mapper: DashMap<i64, ArcStr>,
}

impl Config {
pub fn mapper(&self, target: &i64) -> Option<ArcStr> {
match self.target_address_mapper.get(target) {
Expand Down Expand Up @@ -59,21 +58,6 @@ pub struct CipherConfig {
pub struct TelegramConfig {
#[educe(Default = "BOT_TOKEN")]
pub token: String,
#[educe(Default = "BOT_NAME")]
pub bot_name: String,
pub webhook: WebhookConfig,
}

#[basic_derive]
pub struct WebhookConfig {
#[educe(Default = false)]
pub enable: bool,
#[educe(Default = false)]
pub heroku: bool,
#[educe(Default = 443)]
pub port: u16,
#[educe(Default = "heroku-app-name.herokuapp.com")]
pub host: String,
}

#[basic_derive]
Expand Down

0 comments on commit 60eb430

Please sign in to comment.