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:
Pierre Krieger authored and GitHub committed 2020-04-22 14:31:05 +02:00
1 parent a7f578d63a
commit c424ce94a3
1 file changed
+5 -4
@@ -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,
}