aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2021-04-09 20:21:32 +0300
committerYigit Sever2021-04-09 20:21:32 +0300
commitdd2ab4d72a1108f0bce94961ffb05efdd7a93de3 (patch)
tree7bcab041d3f748941c37e265d1e82c8de6f75091
parent055437231c687f43ec87dd5573f299b1ad049a01 (diff)
downloadgradecoin-dd2ab4d72a1108f0bce94961ffb05efdd7a93de3.tar.gz
gradecoin-dd2ab4d72a1108f0bce94961ffb05efdd7a93de3.tar.bz2
gradecoin-dd2ab4d72a1108f0bce94961ffb05efdd7a93de3.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())