Skip to content
Snippets Groups Projects
Commit c424ce94 authored by Pierre Krieger's avatar Pierre Krieger Committed by GitHub
Browse files

Enable yamux flow control by default (#5734)

* Enable yamux flow control by default

* Tweak description

* Apply suggestions from code review
parent a7f578d6
No related merge requests found
......@@ -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,
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment