summaryrefslogtreecommitdiffstats
path: root/rust/src/bin/fatcat-iron.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-15 14:59:28 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-15 14:59:28 -0700
commit2fd925e4eb3730c36519096e4a74b2de5998e8d4 (patch)
tree63bd81c57fa02ae8359c20bedd8cbc7da0980d6b /rust/src/bin/fatcat-iron.rs
parente35b10434aa4ceb2708610f13fe078e977496ce5 (diff)
downloadfatcat-2fd925e4eb3730c36519096e4a74b2de5998e8d4.tar.gz
fatcat-2fd925e4eb3730c36519096e4a74b2de5998e8d4.zip
start ripping out cruft
Diffstat (limited to 'rust/src/bin/fatcat-iron.rs')
-rw-r--r--rust/src/bin/fatcat-iron.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/rust/src/bin/fatcat-iron.rs b/rust/src/bin/fatcat-iron.rs
index e0705787..9f684b92 100644
--- a/rust/src/bin/fatcat-iron.rs
+++ b/rust/src/bin/fatcat-iron.rs
@@ -8,7 +8,6 @@ extern crate fatcat;
extern crate fatcat_api;
extern crate futures;
extern crate iron;
-extern crate iron_diesel_middleware;
extern crate iron_slog;
extern crate swagger;
#[macro_use]
@@ -21,7 +20,6 @@ extern crate slog_term;
use clap::{App, Arg};
use dotenv::dotenv;
use iron::{Chain, Iron};
-use iron_diesel_middleware::{DieselMiddleware, DieselPooledConnection, DieselReqExt};
use iron_slog::{DefaultLogFormatter, LoggerMiddleware};
use slog::{Drain, Logger};
use std::env;
@@ -44,12 +42,6 @@ fn main() {
let logger = Logger::root(drain, o!());
let formatter = DefaultLogFormatter;
- dotenv().ok();
- let database_url = env::var("DATABASE_URL").expect("DATABASE_URL must be set");
-
- let diesel_middleware: DieselMiddleware<diesel::pg::PgConnection> =
- DieselMiddleware::new(&database_url).unwrap();
-
let server = fatcat::server().unwrap();
let router = fatcat_api::router(server);
@@ -61,7 +53,6 @@ fn main() {
chain.link_before(AllowAllMiddleware::new("cosmo"));
chain.link_after(fatcat::XClacksOverheadMiddleware);
- //chain.link_before(diesel_middleware);
if matches.is_present("https") {
unimplemented!()