From cda627cfb5ce2a136e6ca4720e51e399ccd61979 Mon Sep 17 00:00:00 2001 From: MeexReay Date: Mon, 7 Apr 2025 02:08:36 +0300 Subject: [PATCH] remove threadpool in code --- src/flowgate/config.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/flowgate/config.rs b/src/flowgate/config.rs index c00b559..c9d140d 100755 --- a/src/flowgate/config.rs +++ b/src/flowgate/config.rs @@ -53,7 +53,6 @@ pub struct Config { pub sites: Vec, 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())