We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42d197d commit a6a0cfbCopy full SHA for a6a0cfb
1 file changed
src/config.rs
@@ -149,10 +149,8 @@ fn default_port() -> i32 {
149
8080
150
}
151
152
-fn default_numcpu() -> u32 {
153
- std::thread::available_parallelism()
154
- .map(|n| n.get() as u32)
155
- .unwrap_or(1)
+fn default_one() -> u32 {
+ 1
156
157
158
fn default_workers() -> usize {
@@ -188,7 +186,7 @@ pub struct Config {
188
186
pub build_gpg_key_content: Option<String>,
189
187
#[serde(default)]
190
pub delay_update_secs: u64,
191
- #[serde(default = "default_numcpu")]
+ #[serde(default = "default_one")]
192
pub local_delta_threads: u32,
193
#[serde(default = "default_workers")]
194
pub workers: usize,
0 commit comments