From d17712902a17fad39f2f668d7f46bc5e42bb120d Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 29 Sep 2019 16:50:49 -0400 Subject: entirely remove unused https flag to fatcatd --- rust/src/bin/fatcatd.rs | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'rust/src/bin') diff --git a/rust/src/bin/fatcatd.rs b/rust/src/bin/fatcatd.rs index 4d1f1a88..6f5610f0 100644 --- a/rust/src/bin/fatcatd.rs +++ b/rust/src/bin/fatcatd.rs @@ -7,7 +7,7 @@ extern crate hyper; use cadence::prelude::*; use cadence::{BufferedUdpMetricSink, QueuingMetricSink, StatsdClient}; -use clap::{App, Arg}; +use clap::App; use fatcat::errors::Result; use fatcat::server; use iron::middleware::AfterMiddleware; @@ -35,12 +35,7 @@ impl AfterMiddleware for XClacksOverheadMiddleware { /// Create custom server, wire it to the autogenerated router, /// and pass it to the web server. fn main() -> Result<()> { - let matches = App::new("server") - .arg( - Arg::with_name("https") - .long("https") - .help("Whether to use HTTPS or not"), - ) + let _matches = App::new("server") .get_matches(); dotenv::dotenv().ok(); @@ -154,13 +149,9 @@ fn main() -> Result<()> { chain.link_after(XClacksOverheadMiddleware); - if matches.is_present("https") { - unimplemented!() - } else { - // Using HTTP - Iron::new(chain) - .http(host_port) - .expect("failed to start HTTP server"); - } + // No HTTPS, only HTTP + Iron::new(chain) + .http(host_port) + .expect("failed to start HTTP server"); Ok(()) } -- cgit v1.2.3