From 27102f1a58f785595663667c8b3e2ac9a40ac96d Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Mon, 20 Apr 2020 00:39:38 -0500 Subject: [PATCH] respect config file addr --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 55ed9b9..73053b0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -196,11 +196,10 @@ async fn main() -> Result<()> { config_file.read_to_string(&mut config_str).await?; let config = toml::from_str::(&config_str)?; + let addr = config.addr.clone(); println!("Config: {:?}", config); let fedhub = Fedhub::new(config)?; - let addr = SocketAddr::from(([127, 0, 0, 1], 3000)); - let make_svc = make_service_fn(move |_conn| { let fedhub = fedhub.clone(); let main = move |req| {