mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-12 07:42:58 +02:00
make sender workers default better and clamp value to core count
This commit is contained in:
parent
b9248c879d
commit
e7478f1eac
2 changed files with 6 additions and 10 deletions
|
@ -1828,7 +1828,7 @@ pub struct Config {
|
|||
/// setting a non-zero value.
|
||||
///
|
||||
/// default: 0
|
||||
#[serde(default)]
|
||||
#[serde(default = "default_sender_workers")]
|
||||
pub sender_workers: usize,
|
||||
|
||||
/// Enables listener sockets; can be set to false to disable listening. This
|
||||
|
@ -2315,6 +2315,8 @@ fn default_stream_width_scale() -> f32 { 1.0 }
|
|||
|
||||
fn default_stream_amplification() -> usize { 1024 }
|
||||
|
||||
fn default_sender_workers() -> usize { 4 }
|
||||
|
||||
fn default_client_receive_timeout() -> u64 { 75 }
|
||||
|
||||
fn default_client_request_timeout() -> u64 { 180 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue