mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
udp: Config.socket_workers: make value 0 auto-use available vCPUs
This commit is contained in:
parent
f4ef9fcfc9
commit
14c973f72f
2 changed files with 9 additions and 3 deletions
|
|
@ -11,7 +11,9 @@ use aquatic_toml_config::TomlConfig;
|
|||
#[derive(Clone, Debug, PartialEq, TomlConfig, Deserialize, Serialize)]
|
||||
#[serde(default, deny_unknown_fields)]
|
||||
pub struct Config {
|
||||
/// Number of socket workers. One per virtual CPU is recommended
|
||||
/// Number of socket workers
|
||||
///
|
||||
/// 0 = automatically set to number of available virtual CPUs
|
||||
pub socket_workers: usize,
|
||||
pub log_level: LogLevel,
|
||||
pub network: NetworkConfig,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue