remove println

This commit is contained in:
cupcakearmy 2021-12-20 17:54:09 +01:00
parent 0c01866344
commit a040ad469e
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F

View File

@ -3,8 +3,7 @@ use byte_unit::Byte;
pub fn init(cfg: &mut web::ServiceConfig) {
let limit_string = std::env::var("SIZE_LIMIT").unwrap_or("1 KiB".to_string());
let limit = Byte::from_str(limit_string.clone()).unwrap().get_bytes() as usize;
println!("SIZE_LIMIT: {}, {}", limit_string, limit);
let limit = Byte::from_str(limit_string).unwrap().get_bytes() as usize;
let config = web::JsonConfig::default().limit(limit);
cfg.data(config);
}