diff options
| -rw-r--r-- | rust/src/bin/fatcatd.rs | 21 | 
1 files changed, 6 insertions, 15 deletions
| 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(())  } | 
