Skip to content

Commit

Permalink
refactor: change var name
Browse files Browse the repository at this point in the history
  • Loading branch information
itsusinn committed Oct 27, 2021
1 parent 5059934 commit ba3a283
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::path::Path;
#[location = "config/tg.yml"]
pub struct Config {
#[educe(Default = false)]
pub enabled: bool,
pub enable: bool,
pub nats: NatsConfig,
pub cipher: CipherConfig,
pub telegram: TelegramConfig,
Expand All @@ -35,7 +35,7 @@ pub struct NatsConfig {
#[basic_derive]
pub struct ProxyConfig {
#[educe(Default = false)]
pub enabled: bool,
pub enable: bool,
// pattern: "http://{username}:{password}@{host}:{port}"
#[educe(Default = "http://127.0.0.1:7890")]
pub address: String,
Expand All @@ -44,7 +44,7 @@ pub struct ProxyConfig {
#[basic_derive]
pub struct CipherConfig {
#[educe(Default = false)]
pub enabled: bool,
pub enable: bool,
#[educe(Default = "this-is-an-example-key")]
pub key: String,
#[educe(Default = true)]
Expand Down

0 comments on commit ba3a283

Please sign in to comment.