mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-22 16:26:28 +00:00
remove println
This commit is contained in:
parent
0c01866344
commit
a040ad469e
@ -3,8 +3,7 @@ use byte_unit::Byte;
|
|||||||
|
|
||||||
pub fn init(cfg: &mut web::ServiceConfig) {
|
pub fn init(cfg: &mut web::ServiceConfig) {
|
||||||
let limit_string = std::env::var("SIZE_LIMIT").unwrap_or("1 KiB".to_string());
|
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;
|
let limit = Byte::from_str(limit_string).unwrap().get_bytes() as usize;
|
||||||
println!("SIZE_LIMIT: {}, {}", limit_string, limit);
|
|
||||||
let config = web::JsonConfig::default().limit(limit);
|
let config = web::JsonConfig::default().limit(limit);
|
||||||
cfg.data(config);
|
cfg.data(config);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user