mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
Enable yamux flow control by default (#5734)
* Enable yamux flow control by default * Tweak description * Apply suggestions from code review
This commit is contained in:
@@ -85,9 +85,10 @@ pub struct NetworkParams {
|
||||
#[structopt(flatten)]
|
||||
pub node_key_params: NodeKeyParams,
|
||||
|
||||
/// Experimental feature flag.
|
||||
#[structopt(long = "use-yamux-flow-control")]
|
||||
pub use_yamux_flow_control: bool,
|
||||
/// Disable the yamux flow control. This option will be removed in the future once there is
|
||||
/// enough confidence that this feature is properly working.
|
||||
#[structopt(long)]
|
||||
pub no_yamux_flow_control: bool,
|
||||
}
|
||||
|
||||
impl NetworkParams {
|
||||
@@ -137,7 +138,7 @@ impl NetworkParams {
|
||||
enable_mdns: !is_dev && !self.no_mdns,
|
||||
allow_private_ipv4: !self.no_private_ipv4,
|
||||
wasm_external_transport: None,
|
||||
use_yamux_flow_control: self.use_yamux_flow_control,
|
||||
use_yamux_flow_control: !self.no_yamux_flow_control,
|
||||
},
|
||||
max_parallel_downloads: self.max_parallel_downloads,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user