diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-15 14:59:28 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-15 14:59:28 -0700 |
commit | 2fd925e4eb3730c36519096e4a74b2de5998e8d4 (patch) | |
tree | 63bd81c57fa02ae8359c20bedd8cbc7da0980d6b /rust/src/api_server.rs | |
parent | e35b10434aa4ceb2708610f13fe078e977496ce5 (diff) | |
download | fatcat-2fd925e4eb3730c36519096e4a74b2de5998e8d4.tar.gz fatcat-2fd925e4eb3730c36519096e4a74b2de5998e8d4.zip |
start ripping out cruft
Diffstat (limited to 'rust/src/api_server.rs')
-rw-r--r-- | rust/src/api_server.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs index 3e2e6c9c..2dd1bd8c 100644 --- a/rust/src/api_server.rs +++ b/rust/src/api_server.rs @@ -11,9 +11,8 @@ use self::models::*; use ConnectionPool; use diesel; use diesel::prelude::*; -use iron_diesel_middleware::DieselPooledConnection; +use diesel::r2d2::ConnectionManager; use r2d2; -use r2d2_diesel::ConnectionManager; use swagger; @@ -37,8 +36,8 @@ pub struct Server { impl Api for Server { fn container_id_get( &self, - id: String, - context: &Context, + _id: String, + _context: &Context, ) -> Box<Future<Item = ContainerIdGetResponse, Error = ApiError> + Send> { let conn = self.db_pool.get().expect("db_pool error"); let c: i64 = container_rev.count().first(&*conn).expect("DB Error"); |