aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2021-04-09 20:21:32 +0300
committerYigit Sever2021-04-09 20:21:32 +0300
commit6fc65eaeaca246c4019ba4b9c77853522a15b112 (patch)
tree08051f2b5f8bfd1605a9834ab1b998db15df49ab
parentd7c3dc37fadad3e8c4ffdc4fc9a27285c92b3980 (diff)
downloadgradecoin-6fc65eaeaca246c4019ba4b9c77853522a15b112.tar.gz
gradecoin-6fc65eaeaca246c4019ba4b9c77853522a15b112.tar.bz2
gradecoin-6fc65eaeaca246c4019ba4b9c77853522a15b112.zip
Remove unused code from filters
-rw-r--r--src/custom_filters.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/custom_filters.rs b/src/custom_filters.rs
index 7caf71a..8c36d02 100644
--- a/src/custom_filters.rs
+++ b/src/custom_filters.rs
@@ -10,11 +10,6 @@ pub fn with_db(db: Db) -> impl Filter<Extract = (Db,), Error = Infallible> + Clo
10 warp::any().map(move || db.clone()) 10 warp::any().map(move || db.clone())
11} 11}
12 12
13// Optional query params to allow pagination
14// pub fn list_options() -> impl Filter<Extract = (ListOptions,), Error = Rejection> + Clone {
15// warp::query::<ListOptions>()
16// }
17
18// Accept only json encoded Transaction body and reject big payloads 13// Accept only json encoded Transaction body and reject big payloads
19pub fn transaction_json_body() -> impl Filter<Extract = (Transaction,), Error = Rejection> + Clone { 14pub fn transaction_json_body() -> impl Filter<Extract = (Transaction,), Error = Rejection> + Clone {
20 warp::body::content_length_limit(1024 * 32).and(warp::body::json()) 15 warp::body::content_length_limit(1024 * 32).and(warp::body::json())