From 2fd925e4eb3730c36519096e4a74b2de5998e8d4 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 15 May 2018 14:59:28 -0700 Subject: start ripping out cruft --- rust/src/bin/fatcat-iron.rs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'rust/src/bin') 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 = - 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!() -- cgit v1.2.3