diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/main.rs b/src/bin/main.rs index 882fdc6..bf5f6b0 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs | |||
@@ -1,5 +1,4 @@ | |||
1 | use std::env; | 1 | use std::env; |
2 | use warp::Filter; | ||
3 | 2 | ||
4 | // use gradecoin::error; | 3 | // use gradecoin::error; |
5 | use gradecoin::routes::consensus_routes; | 4 | use gradecoin::routes::consensus_routes; |
@@ -19,9 +18,9 @@ async fn main() { | |||
19 | 18 | ||
20 | let api = consensus_routes(db); | 19 | let api = consensus_routes(db); |
21 | 20 | ||
22 | let routes = api.with(warp::log("gradecoin")); | 21 | // let routes = api.with(warp::log("gradecoin")); |
23 | 22 | ||
24 | // Start the server | 23 | // Start the server |
25 | let point = ([127, 0, 0, 1], 8080); | 24 | let point = ([127, 0, 0, 1], 8080); |
26 | warp::serve(routes).run(point).await; | 25 | warp::serve(api).run(point).await; |
27 | } | 26 | } |