summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-09-29 16:50:49 -0400
committerBryan Newbold <bnewbold@robocracy.org>2019-09-29 16:50:49 -0400
commitd17712902a17fad39f2f668d7f46bc5e42bb120d (patch)
tree5ce773a3b765b2721f4ef846b825fcf7f984ec83
parent626c7e677e23813ce02b6b85955441f360ac36c0 (diff)
downloadfatcat-d17712902a17fad39f2f668d7f46bc5e42bb120d.tar.gz
fatcat-d17712902a17fad39f2f668d7f46bc5e42bb120d.zip
entirely remove unused https flag to fatcatd
-rw-r--r--rust/src/bin/fatcatd.rs21
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(())
}