From: Ian Jackson Date: Sun, 27 Mar 2022 21:52:55 +0000 (+0100) Subject: Rocket cleanup: Remove rocket_workers config variable X-Git-Tag: otter-1.0.0~113 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3b3f978b2ba74e8d6504e0195959725a62d7fe12;p=otter.git Rocket cleanup: Remove rocket_workers config variable Signed-off-by: Ian Jackson --- diff --git a/src/config.rs b/src/config.rs index d200f370..ef2cc6ca 100644 --- a/src/config.rs +++ b/src/config.rs @@ -32,7 +32,6 @@ pub struct ServerConfigSpec { pub http_port: Option, pub public_url: String, pub sse_wildcard_url: Option, - pub rocket_workers: Option, pub template_dir: Option, pub nwtemplate_dir: Option, pub wasm_dir: Option, @@ -67,7 +66,6 @@ pub struct ServerConfig { pub http_port: Option, pub public_url: String, pub sse_wildcard_url: Option<(String, String)>, - pub rocket_workers: u16, pub template_dir: String, pub nwtemplate_dir: String, pub wasm_dir: String, @@ -132,7 +130,7 @@ impl ServerConfigSpec { -> Result { let ServerConfigSpec { change_directory, base_dir, save_dir, command_socket, debug, - http_port, public_url, sse_wildcard_url, rocket_workers, + http_port, public_url, sse_wildcard_url, template_dir, specs_dir, nwtemplate_dir, wasm_dir, libexec_dir, usvg_bin, log, bundled_sources, shapelibs, sendmail, debug_js_inject_file, check_bundled_sources, fake_rng, @@ -234,8 +232,6 @@ impl ServerConfigSpec { }).transpose()?; let debug = debug.unwrap_or(cfg!(debug_assertions)); - let rocket_workers = rocket_workers.unwrap_or( - if debug { 20 } else { 1000 }); let log = { use toml::Value::Table; @@ -287,7 +283,7 @@ impl ServerConfigSpec { let server = ServerConfig { save_dir, command_socket, debug, - http_port, public_url, sse_wildcard_url, rocket_workers, + http_port, public_url, sse_wildcard_url, template_dir, specs_dir, nwtemplate_dir, wasm_dir, libexec_dir, bundled_sources, shapelibs, sendmail, usvg_bin, debug_js_inject, check_bundled_sources, game_rng, prctx,