aboutsummaryrefslogtreecommitdiffstats
path: root/src/custom_filters.rs
diff options
context:
space:
mode:
authorYigit Sever2021-04-10 16:56:00 +0300
committerYigit Sever2021-04-10 16:56:00 +0300
commit001a9ac21c29af53d31e9710d12e37d565880207 (patch)
tree7e0bbbc0b828694950ffaff6f6b51f63a62f46c7 /src/custom_filters.rs
parenta3bc90d6755acbe3670dfcf23f35acdaf9b00ffc (diff)
downloadgradecoin-001a9ac21c29af53d31e9710d12e37d565880207.tar.gz
gradecoin-001a9ac21c29af53d31e9710d12e37d565880207.tar.bz2
gradecoin-001a9ac21c29af53d31e9710d12e37d565880207.zip
giving up with style
Diffstat (limited to 'src/custom_filters.rs')
-rw-r--r--src/custom_filters.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/custom_filters.rs b/src/custom_filters.rs
index 8c36d02..1d65c69 100644
--- a/src/custom_filters.rs
+++ b/src/custom_filters.rs
@@ -12,7 +12,7 @@ pub fn with_db(db: Db) -> impl Filter<Extract = (Db,), Error = Infallible> + Clo
12 12
13// Accept only json encoded Transaction body and reject big payloads 13// Accept only json encoded Transaction body and reject big payloads
14pub fn transaction_json_body() -> impl Filter<Extract = (Transaction,), Error = Rejection> + Clone { 14pub fn transaction_json_body() -> impl Filter<Extract = (Transaction,), Error = Rejection> + Clone {
15 warp::body::content_length_limit(1024 * 32).and(warp::body::json()) 15 warp::body::content_length_limit(1024 * 32).and(warp::filters::body::json())
16} 16}
17 17
18// Accept only json encoded Transaction body and reject big payloads 18// Accept only json encoded Transaction body and reject big payloads