remove threadpool in code
This commit is contained in:
parent
078c65f3eb
commit
cda627cfb5
@ -53,7 +53,6 @@ pub struct Config {
|
||||
pub sites: Vec<SiteConfig>,
|
||||
pub http_host: String,
|
||||
pub https_host: String,
|
||||
pub threadpool_size: usize,
|
||||
pub connection_timeout: Duration,
|
||||
pub incoming_ip_forwarding: IpForwarding
|
||||
}
|
||||
@ -66,8 +65,6 @@ impl Config {
|
||||
let http_host = doc["http_host"].as_str()?.to_string();
|
||||
let https_host = doc["https_host"].as_str()?.to_string();
|
||||
|
||||
let threadpool_size = doc.get("threadpool_size")
|
||||
.unwrap_or(&Value::Number(Number::from(10))).as_u64()? as usize;
|
||||
let connection_timeout = Duration::from_secs(doc.get("connection_timeout")
|
||||
.unwrap_or(&Value::Number(Number::from(10))).as_u64()?);
|
||||
let incoming_ip_forwarding = doc.get("incoming_ip_forwarding")
|
||||
@ -117,7 +114,6 @@ impl Config {
|
||||
sites,
|
||||
http_host,
|
||||
https_host,
|
||||
threadpool_size,
|
||||
connection_timeout,
|
||||
incoming_ip_forwarding
|
||||
}.clone())
|
||||
|
Loading…
Reference in New Issue
Block a user