From 6fc65eaeaca246c4019ba4b9c77853522a15b112 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 9 Apr 2021 20:21:32 +0300 Subject: Remove unused code from filters --- src/custom_filters.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src') 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 + Clo warp::any().map(move || db.clone()) } -// Optional query params to allow pagination -// pub fn list_options() -> impl Filter + Clone { -// warp::query::() -// } - // Accept only json encoded Transaction body and reject big payloads pub fn transaction_json_body() -> impl Filter + Clone { warp::body::content_length_limit(1024 * 32).and(warp::body::json()) -- cgit v1.2.3-70-g09d2