aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/api_server.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-15 11:35:19 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-15 11:35:19 -0700
commit85d469196ff17a3aee7a950ae57d4797938e8f42 (patch)
tree5c3b6b36401d4673f46b4f905c3de6ff2438cbba /rust/src/api_server.rs
parent428898b3ca46855822c80c9bd8a9ae9c8da5aaf2 (diff)
downloadfatcat-85d469196ff17a3aee7a950ae57d4797938e8f42.tar.gz
fatcat-85d469196ff17a3aee7a950ae57d4797938e8f42.zip
fix build (non-functional though)
Diffstat (limited to 'rust/src/api_server.rs')
-rw-r--r--rust/src/api_server.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs
index cac222e6..77ac324b 100644
--- a/rust/src/api_server.rs
+++ b/rust/src/api_server.rs
@@ -33,16 +33,18 @@ impl Api for Server {
context: &Context,
) -> Box<Future<Item = ContainerIdGetResponse, Error = ApiError> + Send> {
let context = context.clone();
- let con: DieselPooledConnection<diesel::pg::PgConnection> = req.db_conn();
+ //let con: DieselPooledConnection<diesel::pg::PgConnection> = req.db_conn();
println!(
"container_id_get(\"{}\") - X-Span-ID: {:?}",
id,
context.x_span_id.unwrap_or(String::from("<none>")).clone()
);
+ /*
println!(
"container count: {}",
containers.count().load(&con).expect("DB Error"),
);
+ */
Box::new(futures::failed("Generic failure".into()))
}