Skip to content

Commit

Permalink
fix: configs are overwritten by default values (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotonQuantum authored Sep 28, 2022
1 parent aeac779 commit 5437355
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ async fn main() {
let _guard = setup_log();

let figment = Figment::new()
.join(("address", "127.0.0.1"))
.join(("port", 8000))
.join(Toml::file("mirror-intel.toml").nested())
.join(Toml::file("Rocket.toml").nested()); // For backward compatibility
.merge(("address", "127.0.0.1"))
.merge(("port", 8000))
.merge(Toml::file("Rocket.toml").nested()) // For backward compatibility
.merge(Toml::file("mirror-intel.toml").nested());
let config: Arc<Config> = Arc::new(figment.extract().expect("config"));

info!("checking if bucket is available...");
Expand Down

0 comments on commit 5437355

Please sign in to comment.