Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Commit

Permalink
Fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
foldu committed Oct 25, 2019
1 parent aa138c4 commit ff8b8f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ impl server::Tgcd for Tgcd {
}

async fn run() -> Result<(), SetupError> {
let addr = "0.0.0.0:8080".parse().unwrap();
let config = envy::from_env()?;
let config: Config = envy::from_env()?;
let addr = format!("0.0.0.0:{}", config.port).parse().unwrap();
let tgcd = Tgcd::new(&config).await?;

Server::builder()
Expand Down

0 comments on commit ff8b8f4

Please sign in to comment.